hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashanth (Created) (JIRA)" <>
Subject [jira] [Created] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"
Date Thu, 17 Nov 2011 20:03:51 GMT
Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

                 Key: HIVE-2591
             Project: Hive
          Issue Type: Bug
          Components: CLI, JDBC, SQL
    Affects Versions: 0.7.1
         Environment: Intel Core2 Quad CPU Q8400 @2.66GHz
Ubuntu 10.10 32 bit
JDK 6.0_27
Apache Ant 1.8.0
Apache Hive 0.7.1
Apache Hadoop
            Reporter: Prashanth
            Priority: Blocker
             Fix For: 0.8.0, 0.7.1


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

/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 files.
Hive history file=/tmp/hadoop/hive_job_log_hduser_201111190121_764439225.txt
Exception in thread "main" java.lang.NoSuchFieldError: type
        at org.apache.hadoop.hive.ql.parse.HiveLexer.mKW_SHOW(
        at org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(
        at org.antlr.runtime.Lexer.nextToken(
        at org.antlr.runtime.BufferedTokenStream.fetch(
        at org.antlr.runtime.BufferedTokenStream.sync(
        at org.antlr.runtime.CommonTokenStream.setup(
        at org.antlr.runtime.CommonTokenStream.LT(
        at org.apache.hadoop.hive.ql.parse.HiveParser.statement(
        at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(
        at org.apache.hadoop.hive.ql.Driver.compile(
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processLine(
        at org.apache.hadoop.hive.cli.CliDriver.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(

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(
[datanucleusenhancer]   at java.lang.Class.getDeclaredFields(
[datanucleusenhancer]   at org.datanucleus.metadata.ClassMetaData.addMetaDataForMembersNotInMetaData(
[datanucleusenhancer]   at org.datanucleus.metadata.ClassMetaData.populate(
[datanucleusenhancer]   at org.datanucleus.metadata.MetaDataManager$
[datanucleusenhancer]   at Method)
[datanucleusenhancer]   at org.datanucleus.metadata.MetaDataManager.populateAbstractClassMetaData(
[datanucleusenhancer]   at org.datanucleus.metadata.MetaDataManager.populateFileMetaData(
[datanucleusenhancer]   at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(
[datanucleusenhancer]   at org.datanucleus.metadata.MetaDataManager.loadMetadataFiles(
[datanucleusenhancer]   at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(
[datanucleusenhancer]   at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(
[datanucleusenhancer]   at org.datanucleus.enhancer.DataNucleusEnhancer.main(

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.


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message