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
Hadoop >> mail # user >> Pig question


Copy link to this message
-
Re: Pig question
B = GROUP A BY x;

C = FOREACH B GENERATE group,SIZE(B),B;

D = FILTER C BY $1 == N;

On Thu, May 3, 2012 at 8:58 PM, Aleksandr Elbakyan <[EMAIL PROTECTED]> wrote:
> Hello All,
> I was wandering if it is possible to filter all groups in pig which have size N. This sounds like something common but can not find the way to do it
>
> Please help :)
>
>
> Thanks,
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