首页 > 解决方案 > Hive schematool 命令错误 org.apache.hadoop.hive.metastore.HiveMetaException:为初始化指定了未知版本:3.1.0

问题描述

我在 Windows 10 中安装 Hadoop,当我启动 Hadoop 时,我在 IIS accounts.tax.gov.ir 中有一个站点,找到一个名为 accounts.tax.gov.ir 的节点。但是当我想运行这个命令时

$HIVE_HOME/bin/schematool -dbType derby -initSchema

我得到这个错误

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/I:/apache-hive-3.1.2-bin/lib/log4j-slf4j-impl
-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/I:/hadoop/share/hadoop/common/lib/slf4j-log4j
12-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://localhost:1527/metastore_db;create
=true
Metastore Connection Driver :    org.apache.derby.jdbc.ClientDriver
Metastore connection User:       APP
Starting metastore schema initialization to 3.1.0
org.apache.hadoop.hive.metastore.HiveMetaException: Unknown version specified fo
r initialization: 3.1.0
Use --verbose for detailed stacktrace.
*** schemaTool failed ***

有谁能够帮我 ?

标签: hadoophive

解决方案


推荐阅读