Support Questions
Find answers, ask questions, and share your expertise

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

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

1 REPLY 1

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

Hi @vivekananda chagam

Once the file is read from directory use

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