Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21623

SchemaTool error: Unknown version specified for initialization: 3.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.1.1
    • None
    • Database/Schema
    • None
    • Incompatible change

    Description

      While trying to initialise the schema using SchemaTool in Hive 3.1.1, it was failing with this message `

      Unknown version specified for initialization: 3.1.0
      

      `
      It looks to be a bug to me. I had to use Apache Hive 3.0.0

      {{}}

      // ./schematool  -dbType Derby -initSchema --verbose
      
      SLF4J: Class path contains multiple SLF4J bindings.
      
      SLF4J: Found binding in [jar:file:/home/rhel/apache-hive-3.1.1-bin/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      
      SLF4J: Found binding in [jar:file:/home/rhel/hadoop-3.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      
      SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
      
      Metastore connection URL: jdbc:derby:;databaseName=metastore_db;create=true
      
      Metastore Connection Driver : org.apache.derby.jdbc.EmbeddedDriver
      
      Metastore connection User: APP
      
      Starting metastore schema initialization to 3.1.0
      
      org.apache.hadoop.hive.metastore.HiveMetaException: Unknown version specified for initialization: 3.1.0
      
      org.apache.hadoop.hive.metastore.HiveMetaException: Unknown version specified for initialization: 3.1.0
      
      at org.apache.hadoop.hive.metastore.MetaStoreSchemaInfo.generateInitFileName(MetaStoreSchemaInfo.java:137)
      
      at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:585)
      
      at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:567)
      
      at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1517)
      
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      
      at java.lang.reflect.Method.invoke(Method.java:498)
      
      at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
      
      at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
      
      *** schemaTool failed ***
      

      Attachments

        Issue Links

          Activity

            People

              aamirmohammad002 MOHAMMAD AAMIR
              Namana Namana H G
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: