hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jian Fang <jian.fang.subscr...@gmail.com>
Subject Hive installation problem: java.lang.NoSuchFieldError: type
Date Fri, 04 Nov 2011 16:19:45 GMT
Hi,

I installed hive 0.7.1 to work with Hadoop 0.20.2. I have set up
HADOOP_HOME and HIVE_HOME. I tried to use the Hive shell and got the
following error:

[hadoop@dnjsrcha01 hive]$ bin/hive
Hive history
file=/tmp/hadoop/hive_job_log_hadoop_201111041218_2145572589.txt
hive> show tables;
Exception in thread "main" java.lang.NoSuchFieldError: type
    at
org.apache.hadoop.hive.ql.parse.HiveLexer.mKW_SHOW(HiveLexer.java:1234)
    at
org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:5942)
    at org.antlr.runtime.Lexer.nextToken(Lexer.java:84)
    at
org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:95)
    at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
    at
org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:521)
    at
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:436)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:327)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:736)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:164)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:241)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456)
    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)

What was wrong and how to get it working?

Thanks in advance,

John

Mime
View raw message