HiveServer2挂起 [英] HiveServer2 hang on start

查看:111
本文介绍了HiveServer2挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Im am new to hadoop/hive. Im trying to start Hive Server 2, but for some reason it seems to hang and never return to command prompt. Any ideas why this is happening?

$:/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 ,但结果相同.

It then stays like that forever. I also tried: hive --service hiveserver2 but same result.

谢谢!

推荐答案

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

Of the 2 SLF4J bindings being listed in the warning you'll need to exclude one of them from the classpath.

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

Even though this is a warning SLF4J will pick one logging framework/implementation and bind with it - binding is determined by the JVM and is mostly considered a random function.

然后尝试一下

hive --service hiveserver2

这篇关于HiveServer2挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆