List out the ways of creating RDD in Apache Spark?



List out the ways of creating RDD in Apache Spark?..

Answer / 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

More Apache Spark Interview Questions

What is SparkSession in Apache Spark? Why is it needed?

1 Answers  


Which serialization libraries are supported in spark?

1 Answers  


What is the disadvantage of spark sql?

1 Answers  


How Spark uses Hadoop?

1 Answers  


What can I do with my m&s sparks points?

1 Answers  


Does spark replace hadoop?

1 Answers  


Can you explain spark mllib?

1 Answers  


What is hdfs spark?

1 Answers  


What are the ways to launch Apache Spark over YARN?

1 Answers  


Is spark an etl?

1 Answers  


What do you understand about yarn?

1 Answers  


What is spark architecture?

1 Answers  


Categories