in Spark Sql by
Q:
How to create RDDs in Spark?

► Click here to show 1 Answer

0 votes
by

Answer: There are two methods to create RDD:

They are:

Parallelizing driver program collection and this can be used SparkContext’s ‘parallelize’

method val Array = Array(3,6,9)

val RDD = sc.parallelize(Array)

By loading dataset from the HBase, HDFS and other external storages.

Loan/Mortgage
Learn More with Madanswer

Related questions

+1 vote
asked Mar 9, 2020 in Spark Sql by SakshiSharma
...