Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB