Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Big Data Hadoop & Spark by (11.4k points)
Can someone please share how one can convert a dataframe to an RDD?

1 Answer

0 votes
by (32.3k points)
edited by

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:

 

Browse Categories

...