简体   繁体   中英

Kafka Error while sending messages to the topic

I am new to kafka, When I am trying to send messages to the topic I am getting below error. Can someone help me with this?

[2018-09-23 13:37:56,613] WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

If you're running Kafka in a cloud service, then you need to configure the listeners appropriately. Almost certainly your client is connecting to the broker, but in the metadata returned by the broker getting an interal IP for the cloud network, which your external client cannot access.

This article explains it all, and the solution: https://rmoff.net/2018/08/02/kafka-listeners-explained/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM