Forum

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

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

    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)
Reply To: Pig word count problem
Your information:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.