最近总是出现这个提示:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/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/slf4j-log4j12-1.7.5.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]
这个提示的大概意思就是 slf4j-log4j12-1.7.25.jar和slf4j-log4j12-1.7.5.jar这两个jar包冲突了,删掉其中一个就行。
rm /usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar
再次运行,警报消失,nice~