Back
Simply, do this:
val rows: RDD[Row] = df.rdd
If you want to know more about Spark, then do check out this awesome video tutorial:
31k questions
32.8k answers
501 comments
693 users