1.连接不上hadoop102:16010的web页面情况1:

在这里插入图片描述

Hadoop为3.1.3版本

a.首先检查hbase-site.xml中的端口是否和自己的hdfs端口一至,我的就是这个问题连接不上
<property>
        <name>hbase.rootdir</name>
        <value>hdfs://hadoop102:8020/HBase</value>
</property>
b.而后检查自己的hadoop版本是否和hbase版本对应,有些版本会导致功能缺陷无法连接web页面(这种情况导致连接不上web页面可能性较小)

在这里插入图片描述

2.连接不上hadoop102:16010的web页面情况2:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

可能前面启动失败一次或者安装过其他版本导致,因为hbase基于zookeeper,所以在zookeeper上已经注册了之前的hbase信息,导致第二次启动失败,所以先在zookeeper中删除hbase的注册信息:

[zk: localhost:2181(CONNECTED) 0] ls /
[cluster, controller_epoch, brokers, zookeeper, admin, isr_change_notification, consumers, latest_producer_id_block, config, hbase]
[zk: localhost:2181(CONNECTED) 1] rmr /hbase

在hbase-site.xml中配置了数据路径

<property>
        <name>hbase.rootdir</name>
        <value>hdfs://hadoop102:8020/HBase</value>
</property>

第一次启动失败后,第二次可删除hdfs中的HBase目录并重试
在这里插入图片描述

故,前面启动失败一次或者安装过其他版本导致报错:1.删除zookeeper的注册信息;2.删除hbase的数据目录

3.更换habse版本

我更换成了2.2.4版本
首先:删除zookeeper的注册信息;删除hbase的数据目录
报错:

java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation 
during component failures, but the underlying filesystem does not support doing so. 
Please check the config value of ‘hbase.procedure.store.wal.use.hsync’ to set the desired level of 
robustness and ensure the config value of ‘hbase.wal.dir’ points to a FileSystem mount that can provide it.

在hbase-site.xml增加配置

<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>

然后这个文件同步到其他节点,然后重启。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐