You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namana H G (JIRA)" <ji...@apache.org> on 2019/04/17 14:16:00 UTC
[jira] [Created] (HIVE-21623) SchemaTool error: Unknown version
specified for initialization: 3.1.0
Namana H G created HIVE-21623:
---------------------------------
Summary: SchemaTool error: Unknown version specified for initialization: 3.1.0
Key: HIVE-21623
URL: https://issues.apache.org/jira/browse/HIVE-21623
Project: Hive
Issue Type: Bug
Components: Database/Schema
Affects Versions: 3.1.1
Reporter: Namana H G
Attachments: Screenshot 2019-04-17 at 6.59.49 PM.png
{{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
(v7.6.3#76005)