This topic contains 0 replies, has 1 voice, and was last updated by Swathi sareddy 2 years, 12 months ago.
lines = LOAD ‘/wordcount’ AS (line:chararray); words = FOREACH lines GENERATE FLATTEN(TOKENIZE(line)) as word; grouped = GROUP words BY word; wordcount = FOREACH grouped GENERATE group, COUNT(words); DUMP wordcount;
Mail (will not be published) (required):
Your Name (required)
Your Email (required)
Enter the destination URL
Or link to existing content