SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.

简介: SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.

1、问题描述

当我们使用命令启动hadoop时,会报出如下错误:

cd usr/local/hadoop
./sbin/satrt-all.sh

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

2、原因

报错提供的网址:http://www.slf4j.org/codes.html#StaticLoggerBinder

所以:只需再绑定一个 slf4j-nop.jar

3、解决方法

3.1 查看已存在slf4j版本

cd /usr/local/hadoop/share/hadoop/common/lib
ls

3.2 下载slf4j-nop

下载网址:Central Repository: org/slf4j/slf4j-nop (maven.org)

使用wget命令下载slf4j-nop-1.7.35.jar

wget https://repo1.maven.org/maven2/org/slf4j/slf4j-nop/1.7.35/slf4j-nop-1.7.35.jar

4、再次启动hadoop

cd /usr/local/hadoop
./sbin/start-all.sh

BUG已解决!!!

目录
相关文章
|
2月前
|
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
88 1
|
3月前
|
Java 开发者
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Class path contains multiple SLF4J bindings.
14 0
|
6月前
|
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“.
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServer
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServer
|
Java Maven
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
497 1
|
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
241 0
|
Java Maven
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
146 0
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
131 0
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
|
Java Android开发
Unable to load class ‘javax.xml.bind.annotation.XmlSchema‘.
Unable to load class ‘javax.xml.bind.annotation.XmlSchema‘.
891 0
Unable to load class ‘javax.xml.bind.annotation.XmlSchema‘.
|
SQL 关系型数据库 MySQL
警告:SLF4J: Class path contains multiple SLF4J bindings.
警告:SLF4J: Class path contains multiple SLF4J bindings.
311 0
警告:SLF4J: Class path contains multiple SLF4J bindings.