The below script show how to load the data file for processing using LOAD command.
grunt> VAR = LOAD 'sample.csv' USING PigStorage() AS (lines:chararray);
grunt> STORE VAR into 'sampleout.csv' USING PigStorage();
The STORE command is used to store the output of contents to the output file.
Comments
Post a Comment