about云开发

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 82576|回复: 3

[总结型] hbase使用遇到 Class path contains multiple SLF4J bindings.错误解决方案

[复制链接]
发表于 2014-5-16 01:08:11 | 显示全部楼层 |阅读模式
问题导读:
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
问题解决


1

主题

2

听众

0

收听

中级会员

Rank: 3Rank: 3

积分
275
发表于 2014-12-10 16:34:13 | 显示全部楼层
同样问题,删除后问题解决,但是出现了
ERROR: Can't get master address from ZooKeeper; znode data == null

1

主题

3

听众

0

收听

高级会员

Rank: 4

积分
1335
发表于 2014-12-17 10:12:27 | 显示全部楼层
路过,学习学习

17

主题

21

听众

34

收听

中级会员

Rank: 3Rank: 3

积分
963
发表于 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.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /3 下一条

QQ|小黑屋|about云开发-学问论坛|社区 ( 京ICP备12023829号

GMT+8, 2018-12-13 12:04 , Processed in 0.485324 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.2 Licensed

快速回复 返回顶部 返回列表