In spark shell, i'm reading an input file and trimming the field values next saving the final rdd using saveAsTextFile() method. The field separator in the input file is '|' but the in the output file I'm getting the field separator as ','.
Input Format: abc | def | xyz
Default Output Format: abc,def,xyz
Required output format something like abc|def|xyz
Is there anyway to change the default output delimiter value to '|', if yes than please suggest.