Spark provides two methods to create an RDD:
By parallelizing a collection in the driver program. This makes use of SparkContext's 'parallelize' method val
IntellipaatData = Array(2,4,6,8,10)
val distIntellipaatData = sc.parallelize(IntellipaatData)
By loading an external dataset from external storage like HDFS, the shared file system