hi stackoverflow community;
i'm totally new pig, want store result in text file , name want. possible using store function.
my code:
a = load 'example.csv' using pigstorage(';'); b = foreach generate $0,$1,$2,$3,$6,$7,$8,$9,$11,$12,$13,$14,$20,$24,$25; store b ‘myoutput’;
thanks.
yes able store result in myoutput.txt , can load data file delimiter want using pigstorage.
a = load 'example.csv' using pigstorage(';'); b = foreach generate $0,$1,$2,$3,$6,$7,$8,$9,$11,$12,$13,$14,$20,$24,$25; store b ‘myoutput.txt’ using pigstorage(';');
Comments
Post a Comment