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
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.xml
Add 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
View the HBase management page