0 votes
in Spark Sql by
How to create RDDs in Spark?

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.

Related questions

+1 vote
asked Mar 9, 2020 in Spark Sql by SakshiSharma
0 votes
asked Jun 8, 2020 in Spark Sql by DavidAnderson
...