I wanted to compare efficiency of RDD compared to usual List in scala spark.
List
val list = Range(1, 1000000, 1) val dist_list = sc.parallelize(list)