Mar 14, 2020 in Spark Sql
Q: How to create RDDs in Spark?

1 Answer

0 votes
Mar 14, 2020

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.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

+1 vote
Mar 9, 2020 in Spark Sql