You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Radha krishna <gr...@gmail.com> on 2016/06/24 09:03:09 UTC

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

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)
using java
Can any one suggest..

Note: i need to use other than \n bez my data contains \n as part of the
column value.



Thanks & Regards
   Radha krishna