因为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.相关推荐

  1. vue项目启动时报错 Error: listen EADDRNOTAVAIL: address not available 192.168.0.102:9003

    vue项目启动时报错 Error: listen EADDRNOTAVAIL: address not available 192.168.0.102:9003 先说一下问题,我的vue项目本地启动时 ...

  2. 局域网计算机中arp,在局域网中的一台计算机上使用了arp-a命令,有如下输出: C:\arp.a Interface: 192.168.0.1 0n - 赏学吧...

    在局域网中的一台计算机上使用了arp-a命令,有如下输出: C:\arp.a Interface: 192.168.0.1 0n Interface Ox1000004 Intemet Address ...

  3. Connection to node 0 (/192.168.204.131:9092) could not be established

    解决连接虚拟机内kafka出现Connection to node 0 /192.168.204.131:9092 could not be established.Broker may not be ...

  4. k8s-问题:[root@master log]# kubectl get node The connection to the server 192.168.0.105:6443 was refus

    记一次测试虚拟机异常关机导致的问题 关于[root@master log]# kubectl get node The connection to the server 192.168.0.105:6 ...

  5. 可以ping通 但ssh: connect to host 192.168.0.2 port 22: Connection refused

    目录 问题描述 原因 解决 问题描述 自己在树莓派端通过SCP指令给电脑上ubuntu传输文件发现提示:ssh: connect to host 192.168.0.2 port 22: Connec ...

  6. 本地上传文件到FastDFS命令上传报错:ERROR - file: connection_pool.c, line: 142, connect to server 192.168.0.197:221

    root@ubuntu:/etc/fdfs# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /etc/a.jpg [2019-12-03 11:38: ...

  7. ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题

    scp免密码登录:Linux基础 - scp免密码登陆进行远程文件同步 执行scp一直是OK的,某天在本地生成了公钥私钥后,scp到某个IP报以下错误 The authenticity of host ...

  8. Call From hadoop102/192.168.121.102 to hadoop102:9000 failed on connection exception

    问题截图 问题描述 在测试Spark中examples案例时,出现Call From hadoop102/192.168.121.102 to hadoop102:9000 failed on con ...

  9. [转帖]IP地址、子网掩码、网络号、主机号、网络地址、主机地址以及ip段/数字-如192.168.0.1/24是什么意思?...

    IP地址.子网掩码.网络号.主机号.网络地址.主机地址以及ip段/数字-如192.168.0.1/24是什么意思? 2016年03月26日 23:38:50 JeanCheng 阅读数:105674  ...

最新文章

  1. try finally 中的return
  2. Android Studio编译好的apk放在哪里?
  3. [原创]PipelineTools 文件传输工具
  4. 使用cxf开发webservice应用时抛出异常
  5. mysal向一个无法连接的网络尝试了一个套接字操作 0.0.3.235_第十二章 Java网络编程(3)——套接字(上)...
  6. 被问到有没有内核开发经验_一个人就是一个开发团队!成电硬核毕业生自制迷你电脑走红!...
  7. java二分法排序算法_Java中使用二分法排序
  8. 09年关门歇业的15大网站 雅虎旗下4网站上榜
  9. iOS开发之--HTTP请求
  10. SVN分支创建,合并,多分支并行
  11. python中导入win32com.client出错问题
  12. 高精度定位系统融合定位模式崭露头角
  13. Usage of API documented as @since 1.8+”报错的解决办法
  14. 微信公众平台服务号与订阅号区别详解【有图】
  15. 未来战警 中的计算机词汇,计算机常用单词词汇
  16. C#项目解决方案管理器中将*.Designer.cs文件放到*.cs文件下
  17. 树莓派4B Ubuntu 21.04 自动温控开关风扇以及RPi.GPIO避坑指南
  18. 安卓开发拍照时闪退遇到问题: file:///storage/emulated/0/0.jpg exposed beyond app through ClipData.Item.getUri()
  19. 基于改进粒子群算法的WSN节点部署优化
  20. html翻牌动画效果,js+css3翻牌动画效果

热门文章

  1. MapReduce的简单实例WordCount
  2. Angular JS 中的内置方法之$watch
  3. 关于PHP数组方法array_walk的疑问
  4. H5外部浏览器直接调起微信——通过url协议 weixin:// 判断是否安装微信及启动微信...
  5. LuaBridge 中C++类和继承示例
  6. [转]百万数据查询优化技巧三四则
  7. 经典插花的教训 PKU 1157
  8. hive mysql编码问题_Hive中文乱码 生产环境问题解决
  9. 多个独立的forEach循环, 内部处理条件是一样,代码优化方案
  10. js导入,导出exel表格