Kafka reports failed to load class "org. slf4j. impl. staticloggerbinder". [Z]

Source: Internet
Author: User

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

 

Test Kafka producer send message and consumer accept message error, Kafka version 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.



Solution:

Download slf4j-1.7.6.zip
Http://www.slf4j.org/dist/slf4j-1.7.6.zip

Extract
Unzip slf4j-1.7.6.zip

Copy the slf4j-nop-1.7.6.jar package to the Kafka libs directory
CD slf4j-1.7.6
CP slf4j-nop-1.7.6.jar/export/Kafka/libs/

Kafka reports failed to load class "org. slf4j. impl. staticloggerbinder". [Z]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.