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

Switch to Threaded View
Pig >> mail # user >> pig 0.12.0 ERROR 2998: Unhandled internal error. com.google.common.collect.ImmutableSet.of


Copy link to this message
-
Re: pig 0.12.0 ERROR 2998: Unhandled internal error. com.google.common.collect.ImmutableSet.of
Hi Dan,

I don't think you've downloaded the correct guava jar file. Here is the
output of javap on pig-withouthadoop.jar and google-guava-r11.jar:

1) pig-withouthadoop.jar

/usr/java/latest/bin/javap -classpath pig-withouthadoop.jar -c
com.google.common.collect.ImmutableSet | grep  'public static
com.google.common.collect.ImmutableSet of'
public static com.google.common.collect.ImmutableSet of();
public static com.google.common.collect.ImmutableSet of(java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object,
java.lang.Object, java.lang.Object[]);

2) google-guava-r11.jar
/usr/java/latest/bin/javap -classpath google-guava-r11.jar -c
com.google.common.collect.ImmutableSet | grep  'public static
com.google.common.collect.ImmutableSet of'
public static com.google.common.collect.ImmutableSet of();
public static com.google.common.collect.ImmutableSet of(java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object,
java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object);
public static com.google.common.collect.ImmutableSet of(java.lang.Object[]);

As can be seen, the 7th static method is different.

Now looking at your error message, it is complaining about that 7th static
method.

>> java.lang.NoSuchMethodError: com.google.common.collect.
ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;
Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object
[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;

In fact, guava-11.0.jar should be embedded in pig-withouthadoop.jar, so I
am not sure why you're getting this error.

Thanks,
Cheolsoo

On Tue, Mar 12, 2013 at 4:45 PM, Danfeng Li <[EMAIL PROTECTED]> wrote:

> Here's the output for the secretDebugCmd
>
> dli2@sig1:~/$ pig12 -secretDebugCmd -param input="s" -param output="t" -c
> b224G_1.pig
> Find hadoop at /usr/bin/hadoop
> dry run:
> HADOOP_CLASSPATH:
> /home/dli2/github/pig/bin/../conf:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar:/etc/hadoop/hmaster_cluster/conf:/home/dli2/github/pig/bin/../build/ivy/lib/Pig/jython-standalone-2.5.2.jar:/home/dli2/github/pig/bin/../build/ivy/lib/Pig/jruby-complete-1.6.7.jar:/home/dli2/github/pig/bin/../pig-withouthadoop.jar:./google-guava-r11.jar
> HADOOP_OPTS: -Xmx1000m  -Dpig.log.dir=/home/dli2/github/pig/bin/../logs
> -Dpig.log.file=pig.log -Dpig.home.dir=/home/dli2/github/pig/bin/..
> /usr/bin/hadoop jar /home/dli2/github/pig/bin/../pig-withouthadoop.jar
> -param input=s -param output=t -c b224G_1.pig
>
> Note the ./google-guava-r11.jar is in the class path.
>
> But I still got the same error.
>
> Thanks.
> Dan
>
> -----Original Message-----
> From: Dmitriy Ryaboy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2013 4:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: pig 0.12.0 ERROR 2998: Unhandled internal error.
> com.google.common.collect.ImmutableSet.of
>
> Try this:
>
> pig -secretDebugCmd
>
> this will show you what's actually on the classpath.
>
>
> On Tue, Mar 12, 2013 at 3:32 PM, Danfeng Li <[EMAIL PROTECTED]>
> wrote:
>
> > I download version r11 (