每当我运行" hive"命令,它在开始之前给我一些错误。我在其他人的电脑上看到过一些正常运行的错误,但不是这个特别的说没有hbase。由于这些错误,查询无法运行
/usr/bin/which: no hbase in (/home/evirac/.local/bin:/home/evirac/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/evirac/hadoop/hadoop/sbin:/home/evirac/hadoop/hadoop/bin:/home/evirac/hadoop/hadoop/sbin:/home/evirac/hadoop/hadoop/bin:/home/evirac/hadoop/hive/bin)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/evirac/hadoop/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/evirac/hadoop/hadoop/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]
Hive Session ID = 601ecfde-b638-4970-bd2d-0287e5414201
Logging initialized using configuration in jar:file:/home/evirac/hadoop/hive/lib/hive-common-3.1.2.jar!/hive-log4j2.properties Async: true
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
hive> SHOW DATABASES;
FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
hive>
Hive不应该直接依赖Hbase,但你可以安装它,并将它的bin目录添加到你的PATH - https://hbase.apache.org
但是,您的错误与Hive metastore有关,而不是Hbase。Hbase metastore的工作在Hive 3中被放弃了- https://cwiki.apache.org/confluence/display/Hive/HBaseMetastoreDevelopmentGuide
如前所述-当您使用首选的Hive客户端beeline
时会发生什么?