About the solution to the Hmaster node in the HBase cluster hanging up just after starting

1. Problem analysis

1. Version analysis
My hadoop version 3.1.3, hbase version 2.0.5

First of all, the hdfs port number must be clear. The internal ports of HDFS NameNode in hadoop3.x are usually 8020/9000/9820, while hadoop2.x is 8020/9000. Here, port 9000 cannot be used. Changing to 8020 will successfully create a directory on hdfs.

Note: The port number here is consistent with the port number configured in core-site.xml.

2. View the log of HBase
insert image description here
It can be seen from this that it may be an incompatibility problem between versions, and configuration needs to be added.

Two, the solution

hbase-site.xmlAdd configuration as follows :

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

Then restart the HBase cluster and find that the problem is solved, and the HMaster node will not hang up
insert image description here
View the HBase management page
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43520450/article/details/129015980