`

报Failed to load class "org.slf4j.impl.StaticLoggerBinder".

    博客分类:
  • JAVA
阅读更多
[root@master ~]#  /export/kafka/bin/kafka-console-producer.sh  --broker-list 10.14.2.201:9092,10.14.2.202:9092,10.14.2.203:9092,10.14.2.204:9092    --topic test
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.

# /export/kafka/bin/kafka-console-consumer.sh  --zookeeper   10.14.2.201:2181,10.14.2.202:2181,10.14.2.203:2181,10.14.2.204:2181  --topic test --from-beginning
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.



解决方法:

下载slf4j-1.7.6.zip
http://www.slf4j.org/dist/slf4j-1.7.6.zip

解压
unzip slf4j-1.7.6.zip

把slf4j-nop-1.7.6.jar 包复制到kafka libs目录下面
cd  slf4j-1.7.6
cp slf4j-nop-1.7.6.jar  /export/kafka/libs/
分享到:
评论

相关推荐

    hibernate的slf4j-nop包

    hibernate的错误SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".的解决方法是:下载slf4j-nop.jar、slf4f-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中某一个而且...

    slf4j-log4j

    用于Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题的jar包

    slf4j-nop-1.6.6.jar

    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...

    slf4j-log4j12-1.7.5.jar

    解决Failed to load class "org.slf4j.impl.StaticLoggerBinder" 所需要的jar包:slf4j-log4j12-1.7.5.jar

    tomcat9-slf4j-logback:Tomcat 9.0.x的SLF4J和Logback集成

    Tomcat + SLF4J +登录 Tomcat SLF4J Logback是tomcat的替代产品,它允许所有内部日志记录全部使用我们喜欢的slf4j / logback库。 注意 从logback 1.1.7开始,不再需要在server.xml中包含${catalina.home}来进行...

    slf4j-nop-1.6.1.jar文件.rar

    当你遇到“SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder”这样的错误时,通常意味着你的应用程序在运行时未能找到合适的SLF4J实现。StaticLoggerBinder是SLF4J用来绑定具体日志框架的关键类,...

    gradle-javadoc-notimestamp-error:带有-doctitle,-notimestamp和自定义doclet的Gradle 6.0 javadoc任务错误的公共再现

    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#StaticLoggerBind

    TestingApp:用于测试实践的测试应用纲要

    运行.jar文件例如java -jar compendium-of-test-apps-v1-1.jar 服务器应该会启动,您会看到如下内容: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP)...

    配置hibernate-distribution-3.6.6.Final时出现的问题及解决办法

    - **具体表现**:在日志输出时,可能会看到类似“Failed to load class 'org.slf4j.impl.StaticLoggerBinder'”的警告信息。 - **原因分析**:这表明SLF4J(Simple Logging Facade for Java)未能找到一个合适的日志...

    使用Hibernate一些常见错误解决办法

    如果系统报错`Failed to load class org.slf4j.impl.StaticLoggerBinder`,这意味着没有找到合适的SLF4J绑定。SLF4J(Simple Logging Facade for Java)是一个日志门面,需要与特定的日志实现(如log4j、logback)...

    Hadoop之hive安装

    例如,SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"。这种错误是因为没有找到合适的绑定SLF4J,无法载入到内存。解决的办法是下载新的合适的slf4j-nop.jar。 基本操作练习 在解决完错误后,...

    ActivitiDemo_LFP_HelloWorld实现

    1. <span Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2. SLF4J: Defaulting to no-operation (NOP) logger implementation 3. SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder ...

Global site tag (gtag.js) - Google Analytics