Complare values with in bag

2013-11-20 Thread Malviya, Saurabh
Hi, I am having similar kind of problem, Want to compare value with in bag. Example (1{(2,4)(1,5)) --> Now want to compare the overlap of tuple, if ( 2 between 1 and 5) or (4 between 1 and 5) want to return true else false (2, {(1,10)(5,8)) A = Group collection By (x); B = Foreach A {

Re: Pig 0.12.0 issue wirth Hadoop 2.2

2013-11-20 Thread Ruslan Al-Fakikh
I've had a similar issue before. Not sure if I had the same versions. This helped me : The solution was to compile with -Dhadoopversion=23 option 20 нояб. 2013 г. 12:41 пользователь "Hiro Gangwani" написал: > Dear Team, > > I have downloaded 0.12.0 version of pig and trying to use with Hadoop 2.

Re: Simple word count in pig..

2013-11-20 Thread Jacob Perkins
Jamal, You're going to want to use a FLATTEN and another group by. Consider: flattened = foreach processed generate id, flatten(tokens) as token; frequency = foreach (group flattened by (id, token)) generate flatten(group) as (id, token),

Re: Simple word count in pig..

2013-11-20 Thread inelu nagamallikarjuna
Hai, Please go through the following code, Input Data: --- DocNameTokens -- cricketsachin,sehwag,dravid,dhoni movieamir,salman,hruthik,ranveer cricketsachin,ganguly,rohit,dhoni cricketsehwag,sachin,dravid,kohli moviesalman,amir,sharukh ===

Pig 0.12.0 issue wirth Hadoop 2.2

2013-11-20 Thread Hiro Gangwani
Dear Team, I have downloaded 0.12.0 version of pig and trying to use with Hadoop 2.2 version. While executing the pig scripts either in local or map reduce mode getting following exception. ERROR org.apache.pig.tools.pigstats.SimplePigStats - ERROR 2997: Unable to recreate exception from back