I have a method that converts ArrayBuffer of Strings into RDD.
def makeRddFromArray() : RDD[String] = {
val rdd = Conf.sc.parallelize(listOfStrings)
//rdd.count
rdd}
With commented rdd.count() it's returning a rdd of size 0. When I uncomment this, the RDD is of proper size. Could someone explain me why? Thanks