adspace


List out the ways of creating RDD in Apache Spark?

Answer Posted / Gyanesh Kumar

The following are the ways to create RDDs in Apache Spark:

1. Creating an RDD from a local collection using parallelize() method.
2. Reading data from an external file or HDFS file system.
3. Using SQLContext or DataFrame API to convert DataFrames and Datasets into RDDs.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how RDDs work with Scala in Spark

411


What is meant by Transformation? Give some examples.

385


What is the latest version of spark?

343


List the advantage of Parquet file in Apache Spark?

525