Hbase0.98使用遇到.jar包与hadoop中的.jar包冲突问题
1.问题描述
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2.解决方法
/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class
和
/usr/hadoop/share/hadoop/common/lib/slf4jlog4j121.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class发生冲突
移除其中一个jar包即可,使用下面命令:
/usr/hbase/lib rm slf4j-log4j12-1.6.4.jar