SLF4J: Class path contains multiple SLF4J bindings.解决方案

简介: SLF4J: Class path contains multiple SLF4J bindings.解决方案

   

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]

image.png

含义为:

发生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

关闭命令窗口重新运行


目录
相关文章
|
3月前
|
Java
flyway报错SLF4J: No SLF4J providers were found.或者SLF4J: Defaulting to no-operation (NOP) logger implem
flyway报错SLF4J: No SLF4J providers were found.或者SLF4J: Defaulting to no-operation (NOP) logger implem
137 1
|
4月前
|
Java 开发者
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Class path contains multiple SLF4J bindings.
21 0
|
7月前
|
Java API Maven
解决SLF4J和logback报错SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
解决SLF4J和logback报错SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
|
Java Maven
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
515 1
|
分布式计算 Hadoop
SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.
SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.
264 0
|
Java Maven
Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log 解决方法
org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:400) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.jav
247 0
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
134 0
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
|
Java
浅谈slf4j,logger中的{}功能
浅谈slf4j,logger中的{}功能
110 0
|
SQL 关系型数据库 MySQL
警告:SLF4J: Class path contains multiple SLF4J bindings.
警告:SLF4J: Class path contains multiple SLF4J bindings.
318 0
警告:SLF4J: Class path contains multiple SLF4J bindings.