Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4395931F for ; Thu, 22 Dec 2011 17:08:50 +0000 (UTC) Received: (qmail 90130 invoked by uid 500); 22 Dec 2011 17:08:50 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 90091 invoked by uid 500); 22 Dec 2011 17:08:50 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 90080 invoked by uid 99); 22 Dec 2011 17:08:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 17:08:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jian.fang.subscribe@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 17:08:43 +0000 Received: by dadi14 with SMTP id i14so8554908dad.35 for ; Thu, 22 Dec 2011 09:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qdjMcZoYRFaJVTp6IC56J5b8Ftoca6yM1M0Bf478ty8=; b=N4iTuZzmMRV+ZjqEo3XsTfO3iJSqF7t0ELUCxP+lIyEnvk3xlB+9f+oXkgqr2Qti/A C+QG8UggX0Hpb84/1PAIaF/1vuaKf3MfEOlOK4HwrCUt5HOqTfBThd0slHdxhBTqM9id bp6AqQeGFCHt6K16kn1XiWtgmfSWUAKmcv56o= MIME-Version: 1.0 Received: by 10.68.191.70 with SMTP id gw6mr24424687pbc.85.1324573702004; Thu, 22 Dec 2011 09:08:22 -0800 (PST) Received: by 10.68.52.10 with HTTP; Thu, 22 Dec 2011 09:08:21 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Dec 2011 12:08:21 -0500 Message-ID: Subject: Re: Hive installation problem: java.lang.NoSuchFieldError: type From: Jian Fang To: user@hive.apache.org Content-Type: multipart/alternative; boundary=e89a8fb20898fca0d004b4b1588a X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb20898fca0d004b4b1588a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please also upgrade the thrift library. The thrift version Hive uses is lower than the one in Cassandra 1.0.X and will cause problem if I try to run hive --service hiveserver Thanks, John On Thu, Nov 10, 2011 at 2:07 PM, Ashutosh Chauhan wro= te: > We are planning to upgrade antlr version which should fix this issue. > https://issues.apache.org/jira/browse/HIVE-2439 > > Ashutosh > > > 2011/11/10 Nicolas Lalev=E9e > >> >> Le 4 nov. 2011 =E0 17:19, Jian Fang a =E9crit : >> >> > 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=3D/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.jav= a:39) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.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? >> >> I don't have the same setup as you, but I got the same error. This is a >> classpath issue and the version of antlr. Locally I had in my classpath >> antlr 3.3. Downgrading to 3.0.1 fixed this. 3.0.1 is the version I saw i= n >> the build of the 0.7.1 tag of hive (I also saw antlr-2.7.7 is that same >> compile classpath, but it doesn't work either). >> >> Hope it helps, >> Nicolas >> >> > --e89a8fb20898fca0d004b4b1588a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please also upgrade the thrift library. The thrift version Hive uses is low= er than the one in Cassandra 1.0.X and will cause problem if I try to run <= br>
hive --service hiveserver

Thanks,

John

On Thu, Nov 10, 2011 at 2:07 PM, Ashutosh Chauhan <hashutosh@apache.org> wr= ote:
We are planning to upgrade antlr version which should fix this issue.
= =A0https://issues.apache.org/jira/browse/HIVE-2439

Ashutosh


2011/11/10 Nicolas Lalev=E9e <nicolas.lalevee@hibnet.org><= /span>

Le 4 nov. 2011 =E0 17:19, Jian Fang a =E9crit :

> Hi,
>
> I installed hive 0.7.1 to work with Hadoop 0.20.2. I have set up HADOO= P_HOME and HIVE_HOME. I tried to use the Hive shell and got the following e= rror:
>
> [hadoop@dnjsrcha01 hive]$ bin/hive
> Hive history file=3D/tmp/hadoop/hive_job_log_hadoop_201111041218_2145572589.txt
> hive> show tables;
> Exception in thread "main" java.lang.NoSuchFieldError: type<= br> > =A0 =A0 at org.apache.hadoop.hive.ql.parse.HiveLexer.mKW_SHOW(HiveLexe= r.java:1234)
> =A0 =A0 at org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer= .java:5942)
> =A0 =A0 at org.antlr.runtime.Lexer.nextToken(Lexer.java:84)
> =A0 =A0 at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenS= tream.java:95)
> =A0 =A0 at
org.antlr.runtime.CommonTokenStream.LT(CommonTokenStre= am.java:238)
> =A0 =A0 at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HivePa= rser.java:521)
> =A0 =A0 at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriv= er.java:436)
> =A0 =A0 at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:327) > =A0 =A0 at org.apache.hadoop.hive.ql.Driver.run(Driver.java:736)
> =A0 =A0 at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.j= ava:164)
> =A0 =A0 at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.= java:241)
> =A0 =A0 at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:45= 6)
> =A0 =A0 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)=
> =A0 =A0 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc= essorImpl.java:39)
> =A0 =A0 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM= ethodAccessorImpl.java:25)
> =A0 =A0 at java.lang.reflect.Method.invoke(Method.java:597)
> =A0 =A0 at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
>
> What was wrong and how to get it working?

I don't have the same setup as you, but I got the same erro= r. This is a classpath issue and the version of antlr. Locally I had in my = classpath antlr 3.3. Downgrading to 3.0.1 fixed this. 3.0.1 is the version = I saw in the build of the 0.7.1 tag of hive (I also saw antlr-2.7.7 is that= same compile classpath, but it doesn't work either).

Hope it helps,
Nicolas



--e89a8fb20898fca0d004b4b1588a--