HiveServer2在启动时挂起

时间:2015-01-15 13:30:41

标签: hadoop hive

我是hadoop / hive的新手。我试图启动Hive Server 2,但由于某种原因它似乎挂起并永远不会返回到命令提示符。任何想法为什么会发生这种情况?

$:/usr/local/hive$ hiveserver2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hive-0.14.0/lib/hive-jdbc-0.14.0-standalone.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.slf4j.impl.Log4jLoggerFactory]

然后永远保持这样。 我也尝试过:hive --service hiveserver2但结果相同。

谢谢!

1 个答案:

答案 0 :(得分:1)

在警告中列出的2个SLF4J绑定中,您需要从类路径中排除其中一个。

即使这是一个警告SLF4J将选择一个日志记录框架/实现并与之绑定 - 绑定由JVM确定,并且通常被认为是随机函数。

然后尝试这个,

hive --service hiveserver2