hive-2.1.1报错Failed to start database 'metastore

xiaoxiao2021-02-27  291

求帮忙,帮忙看看问题出在哪里:hive-2.1.1安装报错如下:

org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version

[root@master ~]# schematool -dbType mysql -initSchema which: no hbase in (/root/anaconda2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/package/jdk1.8.0_121/bin:/root/package/spark-2.1.0-bin-hadoop2.7/bin:/root/anaconda2/bin:/root/package/hadoop-2.7.3/sbin:/root/package/hadoop-2.7.3/bin:/root/package/zookeeper-3.4.9/bin:/root/package/zeppelin-0.7.0-bin-all/bin:/root/package/hive-2.1.1/bin) SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/root/package/hive-2.1.1/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/root/package/hadoop-2.7.3/share/hadoop/common/lib/slf4j-log4j12-1.7.10.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 org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. Underlying cause: java.sql.SQLException : Failed to start database 'metastore_db' with class loader sun.misc.Launcher$AppClassLoader@7b1d7fff, see the next exception for details. SQL Error code: 40000 Use --verbose for detailed stacktrace. *** schemaTool failed ***

转载请注明原文地址: https://www.6miu.com/read-3062.html

最新回复(0)