Error when sending message to topic topic_lcc with key: null

ERROR Error when sending message to topic topic_lcc with key: null, value: 28 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

当出现这个错误是

需要打开 {$kafkaPath}/config/server.properties

vi  config/server.properties
查看 下 
接受者端口是否打开
listeners=PLAINTEXT://111.211.55.15:9092
未打开 请打开。

你可能感兴趣的:(大数据-kafka)