6.HBASE安装疑难杂症

错误表现-SLF4J: Class path contains multiple SLF4J bindings.

  1. 错误表现:
  2. SLF4J: Class path contains multiple SLF4J bindings.
  3. SLF4J: Found binding in [jar:file:/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  4. SLF4J: Found binding in [jar:file:/usr/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  5. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  6. 含义为:
  7. 发生jar包冲突了:
  8. 分别为:
  9. file:/usr/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class
  10. file:/usr/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class
  11. 移除其中一个jar包即可
  12. 解决方案:
  13. 使用下面命令:
  14. /usr/hbase/lib rm slf4j-log4j12-1.6.4.jar
  15. 问题解决