问题
I Have a file with a ctrlB as a record delimiter. I was able to read the file in pig by over-writing LoaderInputFormat class and getInputFormat() method in pig storage. But I was not able to store the file with ctrlB as a record delimiter.
回答1:
Read ctrl+b delimited record
SET textinputformat.record.delimiter '\n'
x= LOAD 'xyz' USING PigStorage('\u0002');
Write ctrl+b delimited record-
store x into 'y' using PigStorage('\u0002');
来源:https://stackoverflow.com/questions/38776692/pig-store-the-file-with-custom-row-record-delimiter