SLF4J: Class path contains multiple SLF4J bindings.解决方案
错误日志信息:
SLF4J: Found binding in [jar:file:/usr/local/src/hadoop/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
含义为:
发生jar包冲突了:
分别为:
:file:/usr/local/src/hadoop/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar
:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar
移除其中一个jar包即可
解决方案:
使用下面命令:
/usr/local/hbase/lib rm slf4j-log4j12-1.7.25.jar
关闭命令窗口重新运行