【Hive】hiveserver2 启动时卡住

hiveserver2启动时卡住

root@slave01:/opt/modules/hive-2.3.5/bin# hive --service hiveserver2 
2019-06-12 21:19:09: Starting HiveServer2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/modules/hive-2.3.5/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/modules/hadoop-2.8.5/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]

看提示是jar包冲突
删除hive中的log4j-slf4j-impl-2.6.2.jar文件再次启动,依然是卡住,如下

root@slave01:/opt/modules/hive-2.3.5/lib# hiveserver2
2019-06-12 21:26:27: Starting HiveServer2

上网搜了一下,原因是hiveserver2是一个允许远程客户端可以使用各种编程语言向Hive提交请求并检索结果的服务,启动时要加&后台启动

root@slave01:/# hiveserver2 &
[1] 15585
root@slave01:/# 2019-06-12 21:34:45: Starting HiveServer2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/modules/hive-2.3.5/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/modules/hadoop-2.8.5/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]

root@slave01:/# jps
15760 Jps
15585 RunJar
13396 DataNode
13562 NodeManager

你可能感兴趣的:(【Hive】hiveserver2 启动时卡住)