Spark Actions

Originally published at: http://www.itversity.com/topic/spark-actions/

Let us explore all the important actions in detail converting to array and preview data – collect, take, first, takeSample aggregate – reduce, count sorting and ranking – top, takeOrdered saving – saveAsTextFile, saveAsSequenceFile – http://www.itversity.com/topic/reading-and-writing-data-using-files/ Previewing data We can use APIs such as collect, take, first to preview data first – returns first record from rdd. Data…