Save data to HDFS


Originally published at:

Data can be saved back to HDFS in different file formats RDD can be saved into text file or sequence file Data Frames can be saved into other file formats Saving RDD – Text file format RDD have below APIs to save data into different file formats saveAsTextFile (most important and covered here) saveAsSequenceFile saveAsNewAPIHadoopFile…