Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0870D9E1E for ; Sun, 4 Mar 2012 14:04:23 +0000 (UTC) Received: (qmail 36513 invoked by uid 500); 4 Mar 2012 14:04:22 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36404 invoked by uid 500); 4 Mar 2012 14:04:21 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 36387 invoked by uid 500); 4 Mar 2012 14:04:21 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 36384 invoked by uid 99); 4 Mar 2012 14:04:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 14:04:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 14:04:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C91B782B3 for ; Sun, 4 Mar 2012 14:03:59 +0000 (UTC) Date: Sun, 4 Mar 2012 14:03:59 +0000 (UTC) From: "Andy Jefferson (Commented) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <577265825.19733.1330869839875.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <914527535.39919.1321560231096.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221893#comment-13221893 ] Andy Jefferson commented on HIVE-2591: -------------------------------------- > java.lang.VerifyError: Expecting a stackmap frame at branch target 76 in method Means you are using JDK1.7 and the DataNucleus enhancer uses ASM3.x (JDK1.6 java bytecode). You can use the tip at the end of this post http://www.datanucleus.org/servlet/forum/viewthread_thread,6799_lastpage,yes#lastpost to use JDK1.7 with current DataNucleus > Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type" > ----------------------------------------------------------------------------------- > > Key: HIVE-2591 > URL: https://issues.apache.org/jira/browse/HIVE-2591 > Project: Hive > Issue Type: Bug > Components: CLI, JDBC, SQL > Affects Versions: 0.7.1 > Environment: Intel Core2 Quad CPU Q8400 @2.66GHz > 4 GB RAM > Ubuntu 10.10 32 bit > JDK 6.0_27 > Apache Ant 1.8.0 > Apache Hive 0.7.1 > Apache Hadoop 0.20.203.0 > Reporter: Prashanth > Priority: Blocker > Labels: hive > > Hi, > When I try to invoke hive and type in "SHOW TABLES" in cli in the environment as explained above, I get "Exception in thread "main" java.lang.NoSuchFieldError: type" and I am not able to use it at all. > Is there any temporary fix for this? Please let me know, if I am making any mistake here. > I have downloaded Hive 0.7.1 from the download link as mentioned in the Hive Wiki. The download url is http://hive.apache.org/releases.html. > /opt/hive-0.7.1$ hive > WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files. > Hive history file=/tmp/hadoop/hive_job_log_hduser_201111190121_764439225.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:89) > at org.antlr.runtime.BufferedTokenStream.fetch(BufferedTokenStream.java:133) > at org.antlr.runtime.BufferedTokenStream.sync(BufferedTokenStream.java:127) > at org.antlr.runtime.CommonTokenStream.setup(CommonTokenStream.java:127) > at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:91) > 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) > I am not sure what is the actual issue here or rather how to fix it. > Can you please let me know if there is any workaround for this. > Alternatively I tried building hive from the SVN source repo. > I am neither able to build hive from SVN. I get the following error. > [datanucleusenhancer] >> D:\hive\build\ivy\lib\default\zookeeper-3.3.1.jar > [datanucleusenhancer] Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 76 in method org.apache.hadoop.hive.metastore.model.MDatabase.jdoCopyField(Lorg/apache/hadoop/hive/metastore/model/MDatabase;I)V at offset 1 > [datanucleusenhancer] at java.lang.Class.getDeclaredFields0(Native Method) > [datanucleusenhancer] at java.lang.Class.privateGetDeclaredFields(Class.java:2308) > [datanucleusenhancer] at java.lang.Class.getDeclaredFields(Class.java:1760) > [datanucleusenhancer] at org.datanucleus.metadata.ClassMetaData.addMetaDataForMembersNotInMetaData(ClassMetaData.java:358) > [datanucleusenhancer] at org.datanucleus.metadata.ClassMetaData.populate(ClassMetaData.java:199) > [datanucleusenhancer] at org.datanucleus.metadata.MetaDataManager$1.run(MetaDataManager.java:2394) > [datanucleusenhancer] at java.security.AccessController.doPrivileged(Native Method) > [datanucleusenhancer] at org.datanucleus.metadata.MetaDataManager.populateAbstractClassMetaData(MetaDataManager.java:2388) > [datanucleusenhancer] at org.datanucleus.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:2225) > [datanucleusenhancer] at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:925) > [datanucleusenhancer] at org.datanucleus.metadata.MetaDataManager.loadMetadataFiles(MetaDataManager.java:399) > [datanucleusenhancer] at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:806) > [datanucleusenhancer] at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:582) > [datanucleusenhancer] at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1316) > BUILD FAILED > D:\Projs_Source\hive\build.xml:297: The following error occurred while executing this line: > D:\Projs_Source\hive\build.xml:154: The following error occurred while executing this line: > D:\Projs_Source\hive\metastore\build.xml:98: Java returned: 1 > Total time: 32 seconds > Any inputs to fix these issues will be very helpful. > Thanks, > Prashanth. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira