Save A Spark Rdd To The Local File System Using Java
I have a RDD that is generated using Spark. Now if I write this RDD to a csv file, I am provided with some methods like 'saveAsTextFile()' which outputs a csv file to the HDFS. I w
Solution 1:
saveAsTextFile is able to take in local file system paths (e.g. file:///tmp/magic/...). However, if your running on a distributed cluster, you most likely want to collect() the data back to the cluster and then save it with standard file operations.
Post a Comment for "Save A Spark Rdd To The Local File System Using Java"