Hope you are doing well.
Please use below command to count number of recordsa = load 'file'...b = group a ALL;c = foreach b generate COUNT(a);Please refer below screen shot for your reference.
Hope it resolves your query.If you have any further query,please let us know.Please share your feedback by choosing either of smiley's.
Fwd: Query regarding Pig Print
Modified on: Mon, 18 Apr, 2016 at 5:16 PM
Did you find it helpful?Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.