You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prashanth (Created) (JIRA)" <ji...@apache.org> on 2011/11/17 21:03:51 UTC

[jira] [Created] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

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
             Fix For: 0.8.0, 0.7.1


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

        

[jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "ransom.hezhiqiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232031#comment-13232031 ] 

ransom.hezhiqiang commented on HIVE-2591:
-----------------------------------------

type error:
it looks some problems in antlr. is the hive.g files changed?
                
> 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

        

[jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "Roshan Pradeep (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246054#comment-13246054 ] 

Roshan Pradeep commented on HIVE-2591:
--------------------------------------

Hi

I am also getting this "type error". Haven't modify any files and just download and configure the following pieces.

Hadoop - 1.0.1
Hive - 0.81

Any help is appreciated.

                
> 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

        

[jira] [Updated] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "Carl Steinbach (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-2591:
---------------------------------

    Fix Version/s:     (was: 0.7.1)
                       (was: 0.8.0)
    
> 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

        

[jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283842#comment-13283842 ] 

Edward Capriolo commented on HIVE-2591:
---------------------------------------

The problem is being compiled against one version of antlr and running with anouther. Does hadoop 1.0 have an antlr on the classpath?
                
> 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

        

[jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "Andy Jefferson (Commented) (JIRA)" <ji...@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

        

[jira] [Commented] (HIVE-2591) Hive 0.7.1 fails with "Exception in thread "main" java.lang.NoSuchFieldError: type"

Posted by "ransom.hezhiqiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232029#comment-13232029 ] 

ransom.hezhiqiang commented on HIVE-2591:
-----------------------------------------

you should use jdk 1.6 
because jdk1.7 jdbc interface has some change. 
i have them same VerifyError when build hive.
after change jdk.it was success.
                
> 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