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 >> pig 0.12.0 ERROR 2998: Unhandled internal error. com.google.common.collect.ImmutableSet.of


Copy link to this message
-
pig 0.12.0 ERROR 2998: Unhandled internal error. com.google.common.collect.ImmutableSet.of
When I try to run pig 0.12.0, I got the following error

$ pig12 -param input="t" -param output="s" -c b224G_1.pig
log4j:ERROR Could not find value for key log4j.appender.NullAppender
log4j:ERROR Could not instantiate appender named "NullAppender".
2013-03-12 17:44:17,724 [main] INFO  org.apache.pig.Main - Apache Pig version 0.12.0-SNAPSHOT (rexported) compiled Mar 07 2013, 13:32:32
2013-03-12 17:44:17,725 [main] INFO  org.apache.pig.Main - Logging error messages to: /home/aaa/pig_1363124657723.log
2013-03-12 17:44:17,934 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/aaa/.pigbootup not found
2013-03-12 17:44:18,068 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://hmaster:8020
2013-03-12 17:44:18,215 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: hmaster:8021
2013-03-12 17:44:18,424 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. 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;
Details at logfile: /home/aaa/pig_1363124657723.log

In the log file
Pig Stack Trace
---------------
ERROR 2998: Unhandled internal error. 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;

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;
        at org.apache.pig.parser.QueryParser.<clinit>(QueryParser.java:287)
        at org.apache.pig.parser.QueryParserUtils.createParser(QueryParserUtils.java:227)
        at org.apache.pig.parser.QueryParserUtils.createParser(QueryParserUtils.java:223)
        at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:225)
        at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:174)
        at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1632)
        at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1605)
        at org.apache.pig.PigServer.registerQuery(PigServer.java:563)
        at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:1032)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:499)
        at org.apache.pig.tools.grunt.GruntParser.loadScript(GruntParser.java:551)
        at org.apache.pig.tools.grunt.GruntParser.processExplain(GruntParser.java:340)
        at org.apache.pig.tools.grunt.Grunt.checkScript(Grunt.java:98)
       at org.apache.pig.Main.run(Main.java:600)
        at org.apache.pig.Main.main(Main.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:197)

How should I fix it?

Thanks.
Dan
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