报Failed to load class "org.slf4j.impl.StaticLoggerBinder"._JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > 报Failed to load class "org.slf4j.impl.StaticLoggerBinder".

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

 2016/11/27 5:31:47  zjw2016  程序员俱乐部  我要评论(0)
  • 摘要:[root@master~]#/export/kafka/bin/kafka-console-producer.sh--broker-list10.14.2.201:9092,10.14.2.202:9092,10.14.2.203:9092,10.14.2.204:9092--topictestSLF4J:Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder".SLF4J:Defaultingtono-operation(NOP
  • 标签:failed class
[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/
发表评论
用户名: 匿名