MOHAMMAD AAMIR created HIVE-25923:
-------------------------------------

             Summary: CLONE - SchemaTool error: Unknown version specified for 
initialization: 3.1.0
                 Key: HIVE-25923
                 URL: https://issues.apache.org/jira/browse/HIVE-25923
             Project: Hive
          Issue Type: Bug
          Components: Database/Schema
    Affects Versions: 3.1.1
            Reporter: MOHAMMAD AAMIR
            Assignee: MOHAMMAD AAMIR


{{While trying to initialise the schema using SchemaTool in Hive 3.1.1, it was 
failing with this message `}}
{code:java}
Unknown version specified for initialization: 3.1.0
{code}
{{`}}
It looks to be a bug to me. I had to use Apache Hive 3.0.0

{{}}
{code:java}
// ./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 ***
{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to