在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