Spark, Distributed Systems, Machine Learning, Hadoop, Scalability.
aggregates all elements of the RDD using some function ✓ Collect: return all the elements of the output data set ✓ SaveAsTextFile: write elements of the data set as a text file. All transformations in Spark are lazy, i.e. they are computed only when an ‘action’ requires a result. In the code below,