Connection to node -1 (Desktop/192.168.0.102:9091) could not be established.
因為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集群就好了.
?
總結
以上是生活随笔為你收集整理的Connection to node -1 (Desktop/192.168.0.102:9091) could not be established.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 英特尔酷睿 i7-14700K 处理器跑
- 下一篇: Could not find a fil