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

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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog