This topic contains 0 replies, has 1 voice, and was last updated by  Pritesh 4 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #322

    Pritesh
    Participant

    A = LOAD ‘/wordcount’ AS (line:chararray);
    B = FOREACH A GENERATE FLATTEN(TOKENIZE(line)) as word;
    C = GROUP B BY word;
    count = FOREACH C GENERATE group, COUNT(B);
    DUMP count;

Viewing 1 post (of 1 total)

The forum ‘Hadoop Developer|Batch-04/06/2014’ is closed to new topics and replies.