How many ways we can create rdd in spark?



How many ways we can create rdd in spark?..

Answer / Shashank Agarwal

In Apache Spark, there are multiple ways to create an RDD. The primary methods include: text file (using TextFile), sequence (using ParallelCollection), parallelizing collections from Scala or Java, and programmatically creating RDDs using transformations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

What are the transformations in spark?

1 Answers  


What is an "RDD Lineage"?

1 Answers  


What is spark yarn executor memoryoverhead?

1 Answers  


State the difference between persist() and cache() functions.

1 Answers  


What is the default spark executor memory?

1 Answers  


What is the use of spark sql?

1 Answers  


What is the difference between spark and apache spark?

1 Answers  


What is tungsten engine in spark?

1 Answers  


What does map transformation do? Provide an example.

1 Answers  


Why is transformation lazy operation in Apache Spark RDD? How is it useful?

1 Answers  


How do we create rdds in spark?

1 Answers  


What do you know about transformations in spark?

1 Answers  


Categories