Commit 67dbcab6 authored by leroyq's avatar leroyq

commit 4

parent 86ffd1ef
-- Load input data from local input directory
A = LOAD 'sample.txt';
A = LOAD '/laboratory/gutenberg_small.txt';
-- Parse and clean input data
B = FOREACH A GENERATE FLATTEN(TOKENIZE((chararray)$0)) AS word;
......@@ -12,5 +12,5 @@ D = GROUP C BY word;
E = FOREACH D GENERATE group, COUNT(C);
-- Store output data in local output directory
STORE E INTO './local-output/WORD_COUNT/';
STORE E INTO 'group016/pig/WORD_COUNT/';
-- Load input data from local input directory
A = LOAD './sample-input/WORD_COUNT/sample.txt';
A = LOAD '/laboratory/gutenberg_small.txt';
-- Parse and clean input data
B = FOREACH A GENERATE FLATTEN(TOKENIZE((chararray)$0)) AS word;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment