How to run pig program without using DUMP


1 Answer(s)


Hi Venkata,
Pig use DUMP to show the output.
You can save the output in txt and open with any text editor.
For example:
a = LOAD 'example.csv' USING PigStorage(';');
b = FOREACH a GENERATE $0,$1,$2,$3,$6,$7,$8,$9,$11,$12,$13,$14,$20,$24,$25;
STORE b INTO ‘myoutput.txt’ using PigStorage(';');
where ';' is delimiter for separating the outputs store under myoutput.txt

Hope this helps.