Save data to HDFS


#1

Originally published at: https://kaizen.itversity.com/topic/cca175-save-data-to-hdfs-scala/

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…