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 16412981A for ; Wed, 4 Apr 2012 19:12:17 +0000 (UTC) Received: (qmail 52379 invoked by uid 500); 4 Apr 2012 19:12:16 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 52252 invoked by uid 500); 4 Apr 2012 19:12:16 -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 52243 invoked by uid 99); 4 Apr 2012 19:12:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 19:12:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.111.4.25] (HELO out1-smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 19:12:09 +0000 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id ACEE821D7B for ; Wed, 4 Apr 2012 15:11:48 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 04 Apr 2012 15:11:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type; s=smtpout; bh=r6Ql rq8nBqZmjkfH1cULIngTfXg=; b=lWG2pDuChHK0l7Z3UHzHzu29egz++JoLYElN Jp3NV3upueJZbQM2MaGj5Z/f1gwx+xoeBsApi/m2Cf2vtU+i0yGvF/e1P0Wu/Gnt vKD+LV3eAjXT93RJrc+ftzCvkpzd9q3wB17123P+EK7KHtdc5RqN889dTjt3nmV5 nmMG2jM= X-Sasl-enc: nYuLHniSs/nuHTiCX+G5M2zfdYAyKT6tNse9KTHQiFSp 1333566708 Received: from Kirk-Trues-MacBook-Air.local (173-11-71-122-SFBA.hfc.comcastbusiness.net [173.11.71.122]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2271148249E; Wed, 4 Apr 2012 15:11:48 -0400 (EDT) Message-ID: <4F7C9CF6.4070403@mustardgrain.com> Date: Wed, 04 Apr 2012 12:11:50 -0700 From: Kirk True Organization: Mustard Grain, Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: user@hive.apache.org CC: Roshan Pradeep Subject: Re: java.lang.NoSuchFieldError: type References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------060702020802090407000708" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------060702020802090407000708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > (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 --------------060702020802090407000708 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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(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
--------------060702020802090407000708--