运行蜂巢0.12 SLF4J的错误 [英] running hive 0.12 with error of slf4j

查看:169
本文介绍了运行蜂巢0.12 SLF4J的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用配置罐中记录初始化:文件:/usr/local/hive/lib/hive-common-0.12.0.jar /hive-log4j.properties

Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-0.12.0.jar!/hive-log4j.properties

SLF4J:类路径中包含多个SLF4J绑定。
SLF4J:在找到的结合[jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:在找到的结合[JAR:文件:/usr/local/hive/lib/slf4j-log4j12-1.6.1.jar /org/slf4j/impl/StaticLoggerBinder.class!]
SLF4J:请参见 http://www.slf4j.org/$c$cs.html# multiple_bindings 一个解释。
SLF4J:实际绑定类型[org.slf4j.impl.Log4jLoggerFactory] ​​

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

蜂巢>

推荐答案

2 SLF4J绑定在警告被列出你需要排除从classpath其中之一。

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.

这篇关于运行蜂巢0.12 SLF4J的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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