MGLblog 2021-11-17 16:51 采纳率: 33.3%
浏览 172
已结题

Hadoop HA中zkfc格式化失败或报错!

21/11/17 08:38:58 INFO zookeeper.ClientCnxn: Opening socket connection to server node-02/192.168.81.135:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:38:58 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:38:58 INFO zookeeper.ClientCnxn: Opening socket connection to server node-01/192.168.81.134:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:38:58 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:38:58 INFO zookeeper.ClientCnxn: Opening socket connection to server node-03/192.168.81.136:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:38:58 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:38:59 INFO zookeeper.ClientCnxn: Opening socket connection to server node-02/192.168.81.135:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:38:59 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:38:59 INFO zookeeper.ClientCnxn: Opening socket connection to server node-01/192.168.81.134:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:38:59 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:00 INFO zookeeper.ClientCnxn: Opening socket connection to server node-03/192.168.81.136:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:00 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:01 INFO zookeeper.ClientCnxn: Opening socket connection to server node-02/192.168.81.135:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:01 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:01 INFO zookeeper.ClientCnxn: Opening socket connection to server node-01/192.168.81.134:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:01 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:01 INFO zookeeper.ClientCnxn: Opening socket connection to server node-03/192.168.81.136:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:01 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:02 INFO zookeeper.ClientCnxn: Opening socket connection to server node-02/192.168.81.135:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:02 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:02 INFO zookeeper.ClientCnxn: Opening socket connection to server node-01/192.168.81.134:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:02 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:02 INFO zookeeper.ClientCnxn: Opening socket connection to server node-03/192.168.81.136:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:02 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/17 08:39:03 ERROR ha.ActiveStandbyElector: Connection timed out: couldn't connect to ZooKeeper in 5000 milliseconds
21/11/17 08:39:03 INFO zookeeper.ClientCnxn: Opening socket connection to server node-02/192.168.81.135:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/17 08:39:03 INFO zookeeper.ZooKeeper: Session: 0x0 closed
21/11/17 08:39:03 INFO zookeeper.ClientCnxn: EventThread shut down
21/11/17 08:39:03 FATAL ha.ZKFailoverController: Unable to start failover controller. Unable to connect to ZooKeeper quorum at node-01:2128,node-02:2128,node-03:2128. Please check the configured value for ha.zookeeper.quorum and ensure that ZooKeeper is running.

以上错误内容,急用请赐教!

  • 写回答

1条回答 默认 最新

  • CSDN专家-微编程 2021-11-17 17:19
    关注

    看看自己是不是在/etc/hosts设置文件里给127.0.0.1配置了像xxxxx这样的主机名,去掉127.0.0.1额外配的主机名应该就可以了,还有就是zk节点数最好是大于1的奇数,别弄成偶数了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月27日
  • 已采纳回答 11月19日
  • 创建了问题 11月17日

悬赏问题

  • ¥15 网络科学导论,网络控制
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)