Error when sending message to topic wyh-elk-kafka-topic with key: null

在kafka中向topic中发送消息报错:

[root@localhost kafka_2.12-2.1.0]# bin/kafka-console-producer.sh --broker-list 192.168.184.128:2181 --topic wyh-elk-kafka-topic
>wyh
[2019-03-13 21:21:06,457] ERROR Error when sending message to topic wyh-elk-kafka-topic with key: null, value: 3 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

端口号写错了,应该是9092。另外需要注意kafka版本是 --broker-list 

发布了263 篇原创文章 · 获赞 137 · 访问量 7572

猜你喜欢

转载自blog.csdn.net/qq_44868502/article/details/103509054