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

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 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分