You can check this example in your scala shell to create RDD from parallelized collection:
scala>sc .parallelize(1 to 100,5) . collect
Parallelize is a method used to create the parallel collection of RDD and this method is spark context parallized method to create parallelize collection. So, Collect as action to start the process.