Connection to node -1 (Desktop/192.168.0.102:9091) could not be established.

╰半橙微兮° 2023-01-05 01:22 259阅读 0赞

因为kafka是依赖zookeeper来支持可靠性的,

所以先看下zookeeper的client有没有问题

$ZOOKEEPER/bin/zkCli.sh -server Desktop:2181

如果该命令正常,但是依然出现下面的问题的话,

021-01-11 11:44:24,839] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Connection to node -1 (Desktop/192.168.0.102:9091) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:24,840] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Bootstrap broker Desktop:9091 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:24,942] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Connection to node -1 (Desktop/192.168.0.102:9091) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:24,942] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Bootstrap broker Desktop:9091 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,094] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Connection to node -1 (Desktop/192.168.0.102:9091) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,094] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Bootstrap broker Desktop:9091 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,349] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Connection to node -1 (Desktop/192.168.0.102:9091) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,350] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Bootstrap broker Desktop:9091 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,757] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Connection to node -1 (Desktop/192.168.0.102:9091) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-11 11:44:25,757] WARN [Consumer clientId=consumer-console-consumer-70674-1, groupId=console-consumer-70674] Bootstrap broker Desktop:9091 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)

那么重启kafka集群就好了.

发表评论

表情:
评论列表 (有 0 条评论,259人围观)

还没有评论,来说两句吧...

相关阅读