topic test with key: null,
[2018-07-21 20:22:42,255]
ERROR Error when sending message to topic test with key: null, value: 17 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
当出现这个错误是
需要打开 {$kafkaPath}/config/server.properties
vi config/server.properties
查看 下
接受者端口是否打开
listeners=PLAINTEXT://111.211.55.15:9092
未打开 请打开。