Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Please help me with a pig script to count the lines in a file

Please help me with a pig script to count the lines in a file

1 REPLY 1

Hi @vivekananda chagam

Once the file is read from directory use

FOREACH (GROUP data ALL) GENERATE COUNT(data);