Solve Kafka"Failed to send messages after 3 tries"

来源:互联网 发布:vscode typings文件 编辑:程序博客网 时间:2024/06/06 00:56

ISSUES “Failed to send messages after 3 tries”

Edit server.properties located in KafKa Server:

  • uncomment advertised.host.name and assign kafka server’s IP
# Hostname the broker will advertise to producers and consumers. If not set, it uses the# value for "host.name" if configured.  Otherwise, it will use the value returned from# java.net.InetAddress.getCanonicalHostName().advertised.host.name=xx.xx.xxx.xxx                  
  • uncomment advertised.port and assign kafka server’s port
# The port to publish to ZooKeeper for clients to use. If this is not set,# it will publish the same port that the broker binds to.advertised.port=9092

than u can try to send the message again.

阅读全文
0 0
原创粉丝点击