SLF4J-jar包多绑定冲突解决

每次执行 hbase shell 时,出现如下提示:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/itcast/hbase-0.98.18-hadoop2/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/itcast/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

从提示信息来看,是hadoop的slf4j 与hbase的slf4j jar包发生了冲突,移除其中一个即可

执行:

rm -f /itcast/hbase-0.98.18-hadoop2/lib/slf4j-log4j12-1.6.4.jar

移除jar包即可

posted @ 2016-07-19 11:19  时光.漫步  阅读(4054)  评论(0编辑  收藏  举报