分享

hbase使用遇到 Class path contains multiple SLF4J bindings.错误解决方案

pig2 2014-5-16 01:08:11 发表于 总结型 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 90702
问题导读:
1.输入
  1. hbase shell
复制代码
遇到Class path contains multiple SLF4J bindings.该如何解决?




错误表现:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hadoop/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.

含义为:
发生jar包冲突了:
分别为:
file:/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class
file:/usr/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class
移除其中一个jar包即可
解决方案:
使用下面命令:
/usr/hbase/lib rm slf4j-log4j12-1.6.4.jar
问题解决


已有(3)人评论

跳转到指定楼层
coldraining 发表于 2014-12-10 16:34:13
同样问题,删除后问题解决,但是出现了
ERROR: Can't get master address from ZooKeeper; znode data == null
回复

使用道具 举报

EASONLIU 发表于 2014-12-17 10:12:27
路过,学习学习
回复

使用道具 举报

sunt99 发表于 2016-9-14 17:47:14
你好,请问下这是什么问题,有点相似
h_area_info - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : (stderr) SLF4J: Class path contains multiple SLF4J bindings.
2016/09/14 03:36:20 - h_area_info - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : (stderr) SLF4J: Found binding in [jar:file:/opt/cloudera/par
cels/CDH-5.7.0-1.cdh5.7.0.p0.45/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2016/09/14 03:36:20 - h_area_info - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : (stderr) SLF4J: Found binding in [jar:file:/opt/spark-1.6.1-
bin-hadoop2.6/lib/spark-assembly-1.6.1-hadoop2.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2016/09/14 03:36:20 - h_area_info - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : (stderr) SLF4J: See http://www.slf4j.org/codes.html#multiple
_bindings for an explanation.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条