We saw this once when we had the wrong version of antlr in our class
path. You might double check that the version of Antlr that's being used
is that which ships with Hive.
On 4/3/12 6:32 PM, Roshan Pradeep wrote:
Hi All
I configured Apache hadoop 1.0.1 and Hive 0.8.1 in my local linux box.
Configured the HADOOP_HOME and just try to run the "SHOW TABLES;" on
hive, but below error blocks me. I have nothing changed and all are
standard installations provided in the download section.
hive> SHOW TABLES;
Exception in thread "main" java.lang.NoSuchFieldError: type
at
org.apache.hadoop.hive.ql.parse.HiveLexer.mKW_SHOW(HiveLexer.java:1259)
at
org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:6234)
at org.antlr.runtime.Lexer.nextToken(Lexer.java:84)
at
org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:95)
at org.antlr.runtime.CommonTokenStream.LT
<http://org.antlr.runtime.CommonTokenStream.LT>(CommonTokenStream.java:238)
at
org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:546)
at
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:437)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:417)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:337)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:889)
at
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:255)
at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:212)
at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554)
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:156)
Many thanks.
/Roshan