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 >> ERROR 2998: Unhandled internal error. org.antlr.runtime.tree.BaseTree.insertChild


Copy link to this message
-
Re: ERROR 2998: Unhandled internal error. org.antlr.runtime.tree.BaseTree.insertChild
Hi Ondrej,

>> java.lang.NoSuchMethodError:
>> org.antlr.runtime.tree.BaseTree.insertChild(ILjava/lang/Object;)V

You probably have an incompatible version of antlr runtime jar in
classpath. Pig 0.12 is built with antlr 3.4.

Thanks,
Cheolsoo

On Thu, Nov 28, 2013 at 2:58 AM, Ondřej Černoš <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am trying to generate tuples in foreach:
>
> grunt> u = LOAD 'm_example.csv' using PigStorage(',');
> grunt> dump u;
> (da1fdd20-0028-11e3-b778-0800200c9a66,popree,8154968)
> (da1fdd21-0028-11e3-b778-0800200c9a66,adee,2049834)
> (da1fdd22-0028-11e3-b778-0800200c9a66,aaree,248734)
> (da1fdd23-0028-11e3-b778-0800200c9a66,fme,098687)
> (da1fdd24-0028-11e3-b778-0800200c9a66,fxee,2099876)
> (da1fdd25-0028-11e3-b778-0800200c9a66,ree,239209)
> (da1fdd26-0028-11e3-b778-0800200c9a66,qwee,934190)
> (da1fdd27-0028-11e3-b778-0800200c9a66,frue,1905)
> (da1fdd28-0028-11e3-b778-0800200c9a66,exee,8767)
> (da1fdd29-0028-11e3-b778-0800200c9a66,nmee,1235)
> (da1fdd2a-0028-11e3-b778-0800200c9a66,brrjee,26657654)
> (da1fdd2b-0028-11e3-b778-0800200c9a66,rree,9025987)
> (da1fdd2c-0028-11e3-b778-0800200c9a66,orrxee,98675987)
> (da1fdd2d-0028-11e3-b778-0800200c9a66,oree,88705)
> (da1fdd2e-0028-11e3-b778-0800200c9a66,grrmee,96557886)
> grunt> pu = foreach u generate ($0, $1);
> Details at logfile: /Users/.../pig_1385635869971.log
>
> From the log file:
>
> $ cat pig_1385635869971.log
> Pig Stack Trace
> ---------------
> ERROR 2998: Unhandled internal error.
> org.antlr.runtime.tree.BaseTree.insertChild(ILjava/lang/Object;)V
>
> java.lang.NoSuchMethodError:
> org.antlr.runtime.tree.BaseTree.insertChild(ILjava/lang/Object;)V
> at org.apache.pig.parser.QueryParser.paren_expr(QueryParser.java:18056)
> at org.apache.pig.parser.QueryParser.cast_expr(QueryParser.java:17529)
> at org.apache.pig.parser.QueryParser.multi_expr(QueryParser.java:16203)
> at org.apache.pig.parser.QueryParser.expr(QueryParser.java:16092)
> at org.apache.pig.parser.QueryParser.real_arg(QueryParser.java:15158)
> at
>
> org.apache.pig.parser.QueryParser.flatten_generated_item(QueryParser.java:14900)
> at
>
> org.apache.pig.parser.QueryParser.foreach_plan_simple(QueryParser.java:3551)
> at
> org.apache.pig.parser.QueryParser.foreach_statement(QueryParser.java:3274)
> at org.apache.pig.parser.QueryParser.statement(QueryParser.java:2189)
> at org.apache.pig.parser.QueryParser.query(QueryParser.java:395)
> at
> org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:236)
> at
> org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:179)
> at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1648)
> at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1621)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:575)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:1093)
> at
>
> org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:501)
> at
>
> org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:198)
> at
>
> org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173)
> at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
> at org.apache.pig.Main.run(Main.java:541)
> at org.apache.pig.Main.main(Main.java:156)
>
> ===============================================================================>
> No other input is accepted (all ends with this error) until I restart
> grunt.
>
> The foreach works if I generate bags, not tuples.
>
> Is this me not understanding Pig at all (perfectly possible) or have I run
> into a bug? Pig 0.12.
>
> Thanks,
>
> ondrej cernos
>
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