Re: append file on hdfs

2015-06-10 Thread Richard Marscher
Hi, if you now want to write 1 file per partition, that's actually built into Spark as *saveAsTextFile*(*path*)Write the elements of the dataset as a text file (or set of text files) in a given directory in the local filesystem, HDFS or any other Hadoop-supported file system. Spark will call toSt

Re: append file on hdfs

2015-06-10 Thread Pa Rö
hi, i have an idea to solve my problem, i want write one file for each spark partion, but i not know to get the actuel partion suffix/ID in my call function? points.foreachPartition( new VoidFunction>>() { private static final long serialVersionUID = -72108975

append file on hdfs

2015-06-09 Thread Pa Rö
hi community, i want append results to one file. if i work local my function build all right, if i run this on a yarn cluster, i lost same rows. here my function to write: points.foreach( new VoidFunction>() { private static final long serialVersionUID = 245999564938