kafka 报Failed to load class "org.slf4j.impl.StaticLoggerBinder".[z]

转:http://blog.chinaunix.net/uid-25135004-id-4172954.html

测试kafka    producer发送消息 和  consumer 接受消息报错 ,kafka版本kafka_2.9.2-0.8.1

[[email protected] ~]#  /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/

时间: 2024-10-07 12:44:17

kafka 报Failed to load class "org.slf4j.impl.StaticLoggerBinder".[z]的相关文章

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".错误的解决方法

1.今天新git下来的项目报错如下: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2.解决办法 我的解决方法是,看报错

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

调试Mina程序出现如下错误: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 下载相应的slf4j的jar包,在slf4

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

调试程序出现如下错误: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 下载相应的slf4j的jar包,在slf4j官网下

解决Failed to load class "org.slf4j.impl.StaticLoggerBinder"

解决Failed to load class "org.slf4j.impl.StaticLoggerBinder" 解决办法,两步: 一.在编译路径中添加Log4J的包,比如我一直在用的log4j-1.2.8.jar: 二.再添加一个叫做slf4j-log4j12-1.5.11.jar的包进行转换,注意到这里的log4j12,可能对应的是log4j 1.2版本.解决! 补充: SLF4J官方下载:http://www.slf4j.org/download.html 下载对应版本后加压

【SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".】解决办法

[问题描述] Maven工程中,使用了slf4j,运行时出现错误: 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. [

【Hibernate】Hibernate3.x独立运行时的Failed to load class "org.slf4j.impl.StaticLoggerBinder"错误

按理说,如果Hibernate不依附于SSH运行,像<[Struts2+Hibernate3+Spring3]利用SSH整合,完成打印用户表,用户登录.注册.修改密码系统>(点击打开链接)一样,把hibernate-distribution-3.6.10.Final解压之后,把根目录的hibernate3.jar,hibernate-distribution-3.6.0.Final\lib\required下的所有jar,hibernate-distribution-3.6.0.Final\l

Mina 中遇到SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;

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<http://www.slf4j

spring quartz 定时任务“Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder”“Checking for available updated version of Quartz”

Failed to load class "org.slf4j.impl.StaticLoggerBinder 需要slf4j-api.jar.slf4j-log4j12.jar Checking for available updated version of Quartz 添加系统属性 System.setProperty("org.terracotta.quartz.skipUpdateCheck", "true"); spring quartz 定

解决JettyMavenPlugin: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;

<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>log4j</groupId