1、启动生产者进程:
[root@VM_0_16_centos config]# kafka-console-producer.sh --broker-list hadoop000:9092 --topic test
sss
[2018-05-08 22:56:08,946] WARN Error while fetching metadata with correlation id 0 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,055] WARN Error while fetching metadata with correlation id 1 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,159] WARN Error while fetching metadata with correlation id 2 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,263] WARN Error while fetching metadata with correlation id 3 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,367] WARN Error while fetching metadata with correlation id 4 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,471] WARN Error while fetching metadata with correlation id 5 : {test=LEADER_NOT_AVAILABLE} (
org.apache.kafka.clients.NetworkClient
)
[2018-05-08 22:56:09,577] WARN Error while fetching metadata with correlation id 6 : {test=LEADER_NOT_AVAILABLE} (
|