Hbase 显示已经启动 但群停无法使用报:zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing s

本文档记录了一次Hbase启动后无法通过Web界面正常显示的问题,问题根源在于Hadoop文件损坏导致Hadoop无法退出安全模式。解决方案包括使用hdfsfsck命令删除损坏文件,清除Zookeeper上的Hbase节点信息,然后重启Hadoop、Zookeeper和Hbase。此过程有助于理解Hbase与Hadoop、Zookeeper之间的交互及故障排查技巧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以下若有任何错误 敬请指出 万分感谢!

问题描述:Hbase 可以使用群起命令启动 而且显示已经正常启请添加图片描述
但登录Hbase Web时无法正常显示 显示为请添加图片描述
查看Hbase日志 日志提示无法正常连接
请添加图片描述

2021-06-06 22:11:26,552 WARN  [main-SendThread(xiaoliu106:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
        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:1141)

为什么出现如下错[localhost][demo-hello][2025-07-17 15:31:29.305][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) [localhost][demo-hello][2025-07-17 15:31:31.347][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: Connection refused: no further information [localhost][demo-hello][2025-07-17 15:31:32.449][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) [localhost][demo-hello][2025-07-17 15:31:34.464][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Socket error occurred: localhost/127.0.0.1:2181: Connection refused: no further information [localhost][demo-hello][2025-07-17 15:31:35.302][ERROR][24992][ main][o.a.c.ConnectionState ] : [] [] [] Connection timed out for connection string (localhost:2181) and timeout (5000) / elapsed (18644) org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:225) at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:94) at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:117) at org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:489) at org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:237) at org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:226) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109) at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForegroundStandard(ExistsBuilderImpl.java:223)
最新发布
07-18
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值