WARN [Producer clientId=console-producer] Connection to node -2 could not be established. Broker may

测试用kafka生产者发送消息时候警告,因为,kafka集群没有全部起来,第一次只是启动了一个集群,所有有两个connection 节点找不到,第二次开启了节点2,节点2的警告消失,第三次全部节点开启,警告消失。
1.[trustfar@bigdata01 ~]$ kafka-console-producer.sh --broker-list bigdata01:9092,bigdata02:9092,bigdata03:9092 --topic test1

s
[2019-03-15 20:07:38,810] WARN [Producer clientId=console-producer] Connection to node -2 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-03-15 20:07:38,922] WARN [Producer clientId=console-producer] Connection to node -2 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-03-15 20:07:38,926] WARN [Producer clientId=console-producer] Connection to node -3 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
dcdsc
cdassa
sadfasf

2.[trustfar@bigdata01 ~]$ kafka-console-producer.sh --broker-list bigdata01:9092,bigdata02:9092,bigdata03:9092 --topic test1

adc
[2019-03-15 20:13:13,629] WARN [Producer clientId=console-producer] Connection to node -3 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-03-15 20:13:13,749] WARN [Producer clientId=console-producer] Connection to node -3 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
daf

3.[trustfar@bigdata01 ~]$ kafka-console-producer.sh --broker-list bigdata01:9092,bigdata02:9092,bigdata03:9092 --topic test1

sssssssss
cdascsd

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值