You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Johan Oskarsson <jo...@oskarsson.nu> on 2008/11/18 20:00:30 UTC

Antlr issue

Hi, was just about to give hive a try but ran into an issue with the
shell. This is on a 20 node hadoop 0.17.2 cluster with the 0.17 hive
from http://mirror.facebook.com/facebook/hive/hadoop-0.17/dist.tar.gz

I uncommented the echo statements in bin/hive to give you the classpath.
It doesn't matter what command I type, they all fail.
I checked out the source for antlr-runtime-3.0.1 and the ruleMemo
variable does exist and is protected in a class that HiveParser extends
so it should work.

Any ideas? I'm lazy and just wanted to try Hive out so won't spend too
much time on this.

hadoop@master:~/hive$ bin/hive
CLASSPATH=/home/hadoop/hive/bin/../conf:/home/hadoop/hive/bin/../lib/antlr-runtime-3.0.1.jar:/home/hadoop/hive/bin/../lib/asm-3.1.jar:/home/hadoop/hive/bin/../lib/commons-collections-3.2.1.jar:/home/hadoop/hive/bin/../lib/commons-jexl-1.1.jar:/home/hadoop/hive/bin/../lib/commons-lang-2.4.jar:/home/hadoop/hive/bin/../lib/derby.jar:/home/hadoop/hive/bin/../lib/hive_cli.jar:/home/hadoop/hive/bin/../lib/hive_common.jar:/home/hadoop/hive/bin/../lib/hive_exec.jar:/home/hadoop/hive/bin/../lib/hive_metastore.jar:/home/hadoop/hive/bin/../lib/jdo2-api-2.1.jar:/home/hadoop/hive/bin/../lib/jline-0.9.94.jar:/home/hadoop/hive/bin/../lib/jpox-core-1.2.2.jar:/home/hadoop/hive/bin/../lib/jpox-enhancer-1.2.2.jar:/home/hadoop/hive/bin/../lib/jpox-rdbms-1.2.2.jar:/home/hadoop/hive/bin/../lib/libfb303.jar:/home/hadoop/hive/bin/../lib/libthrift.jar:/home/hadoop/hive/bin/../lib/stringtemplate-3.1b1.jar:/home/hadoop/hive/bin/../lib/TestSerDe.jar:/home/hadoop/hive/bin/../lib/velocity-1.5.jar:
AUX_LIB_PATH=
HADOOP_OPTS=
hive> CREATE TABLE pokes (foo INT, bar STRING);
java.lang.NoSuchFieldError: ruleMemo
        at
org.apache.hadoop.hive.ql.parse.HiveParser.<init>(HiveParser.java:264)
        at
org.apache.hadoop.hive.ql.parse.ParseDriver$HiveParserX.<init>(ParseDriver.java:194)
        at
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:253)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:122)
        at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
        at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:208)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:304)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.mapred.JobShell.main(JobShell.java:220)