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 {
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.
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),
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
===
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