Get the App
SLTechnology News&Howtos  ›  Development  › 

Connection to node-1 could not be established. Kafka was encountered in debugging. How does Broker may not be available solve it?

Shulou Source: shulou.com Published: 2022-06-03 18:53:46 09月12日 Update

This article mainly explains the "kafka debugging encountered Connection to node-1 could not be established. Broker may not be available how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "kafka debugging encountered Connection to node-1 could not be established. Broker may not be available how to solve" it!

Kafka error message:

WARN [Consumer clientId=consumer-1, groupId=console-consumer-950] Connection to node-1 could not be established. Broker may not be available.

This is because the PLAINTEXT in your configuration file is different from what you requested. For example, I configured listeners=PLAINTEXT://10.127.96.151:9092 in the configuration file, but I asked for. / kafka-console-consumer.sh-- bootstrap-server localhost:9092-- topic topic1-- from-beginning when I wanted to test

The correct one should be. / kafka-console-consumer.sh-- bootstrap-server 10.127.96.151 topic topic1-- from-beginning

Thank you for reading, the above is the content of "kafka debugging encountered Connection to node-1 could not be established. Broker may not be available how to solve", after the study of this article, I believe you encountered Connection to node-1 could not be established in kafka debugging. Broker may not be available has a deeper understanding of how to solve this problem, and the specific use still needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Content learning configuration files different for example ideas situations articles time more knowledge knowledge points articles followed this is the problem practice push Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology OPPO Reno Apple macOS