I am on HDP 2.3.4. Below is pig script
A = LOAD '/user/n0276082/tmp/file2.txt' USING PigStorage(',') AS (c1:chararray,c2:chararray, c3:chararray , c4:chararray); STORE A INTO '/user/n0276082/HH/matchFile' USING org.apache.pig.piggybank.storage.FixedWidthStorer('1-30, 31-61, 62-92, 93-110' ,'NO_HEADER' );
file2.txt looke like this:
File get created at /user/n0276082/HH/matchFile/part-m-00000 is attached.part-m-00000.txt
I want to store the data in left justified.
Please let me know if there is way to do that.