Re: How to write the DataFrame results back to HDFS with other then \n as record separator

2016-06-28 Thread Dhaval Patel
Did you try implementing MultipleTextOutputFormat and use SaveAsHadoopFile with keyClass, valueClass and OutputFormat instead of default parameters? You need to implement toString for your keyClass and ValueClass inorder to get field separator other than defaults. Regards Dhaval On Tue, Jun 28,

How to write the DataFrame results back to HDFS with other then \n as record separator

2016-06-28 Thread Radha krishna
Hi, i have some files in the hdfs with FS as field separator and RS as record separator, i am able to read the files and able to process successfully. how can i write the spark DataFrame result into the HDFS file with same delimeters (FS as field separator and RS as record separator instead of \n)

How to write the DataFrame results back to HDFS with other then \n as record separator

2016-06-24 Thread Radha krishna
Hi, i have some files in the hdfs with FS as field separator and RS as record separator, i am able to read the files and able to process successfully. how can i write the spark DataFrame result into the HDFS file with same delimeters (FS as field separator and RS as record separator instead of \n)