apache-spark Show RDD contents


Example

To show contents of an RDD, it have to be printed:

myRDD.foreach(println)

To limit number of rows printed:

myRDD.take(num_of_rows).foreach(println)