Concept Flow - Creating RDDs from collections and files
Start SparkContext sc
Create RDD from Collection
Create RDD from File
Use RDD for transformations/actions
Stop SparkContext
First, start SparkContext. Then create RDDs either from a collection or a file. Use RDDs for data processing. Finally, stop SparkContext.