首页 > 解决方案 > Hiveserver2 从不启动但没有错误

问题描述

我正在尝试使用以下命令在本地运行 hiveServer2

hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=TRACE,console

然而,这项工作似乎永远不会开始,例如它永远不会在端口 100000 上处于活动状态。下面是跟踪日志,但其中似乎没有任何内容。我的 hive-site.xml 太大而无法包含在问题中,但我正在连接到 mysql 数据库。

apache-hive-2.3.9-bin % hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=TRACE,console
2021-07-16 12:06:11: Starting HiveServer2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/pum001c/Downloads/apache-hive-2.3.9-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/Cellar/hadoop/3.3.1/libexec/share/hadoop/common/lib/slf4j-log4j12-1.7.30.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]
2021-07-16T12:06:15,474 DEBUG [main] security.SecurityUtil: Setting hadoop.security.token.service.use_ip to true
2021-07-16T12:06:15,492 DEBUG [main] security.Groups:  Creating new Groups object
2021-07-16T12:06:15,496 DEBUG [main] util.NativeCodeLoader: Trying to load the custom-built native-hadoop library...
2021-07-16T12:06:15,497 DEBUG [main] util.NativeCodeLoader: Failed to load native-hadoop with error: java.lang.UnsatisfiedLinkError: no hadoop in java.library.path
2021-07-16T12:06:15,497 DEBUG [main] util.NativeCodeLoader: java.library.path=/Users/pum001c/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2021-07-16T12:06:15,497  WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2021-07-16T12:06:15,499 DEBUG [main] util.PerformanceAdvisory: Falling back to shell based
2021-07-16T12:06:15,501 DEBUG [main] security.JniBasedUnixGroupsMappingWithFallback: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping
2021-07-16T12:06:15,530 DEBUG [main] security.Groups: Group mapping impl=org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback; cacheTimeout=300000; warningDeltaMs=5000
2021-07-16T12:06:15,553 DEBUG [main] session.SessionState: SessionState user: null
2021-07-16T12:06:15,639 DEBUG [main] core.Tracer: sampler.classes = ; loaded no samplers
2021-07-16T12:06:15,751 TRACE [main] core.TracerId: ProcessID(fmt=%{tname}/%{ip}): computed process ID of "FSClient/192.168.0.143"
2021-07-16T12:06:15,752 TRACE [main] core.TracerPool: TracerPool(Global): adding tracer Tracer(FSClient/192.168.0.143)
2021-07-16T12:06:15,752 DEBUG [main] core.Tracer: span.receiver.classes = ; loaded no span receivers
2021-07-16T12:06:15,752 TRACE [main] core.Tracer: Created Tracer(FSClient/192.168.0.143) for FSClient
2021-07-16T12:06:15,846 DEBUG [main] session.SessionState: HDFS root scratch dir: /tmp/hive with schema null, permission: rwxr-xr-x
2021-07-16T12:07:15,902 DEBUG [main] session.SessionState: SessionState user: null
2021-07-16T12:07:15,913 DEBUG [main] session.SessionState: HDFS root scratch dir: /tmp/hive with schema null, permission: rwxr-xr-x

标签: hivehiveserver2

解决方案


推荐阅读