Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Count lines of text


Copy link to this message
-
RE: Count lines of text
A = load 'input';
B = group A all;
C = foreach B generate COUNT(A);
dump C;

Santhosh

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Edward
J. Yoon
Sent: Thursday, April 02, 2009 11:15 PM
To: [EMAIL PROTECTED]
Subject: Count lines of text

Hi,

I'd like to simply count lines of text using pig. Does anyone have
advice for me?

Thanks.
--
Best Regards, Edward J. Yoon
[EMAIL PROTECTED]
http://blog.udanax.org