16010 page can not be opened, ERROR: KEEPERERRORCODE = NONODE FOR /HBASE/MASTER

created at 08-16-2021 views: 37

description

After HBASE is started, the HMASTER process starts and automatically shuts down after a few seconds, but the HREGIONSERVER process runs normally; the 16010 page cannot be opened, HBASE SHELL: ERROR: KEEPERERRORCODE = NONODE FOR /HBASE/MASTER error. Mainly these problems:

solution

Configure the hbase.site.xml file:

<property>
    <name>hbase.rootdir</name>
    <value>hdfs://zaz01:9000/hbase</value>
</property>

Add 9000 to your own node, otherwise you won’t be able to access it.

The entire configuration file hbase.site.xml file:
Execute the command in the /home/hadoop/app/hbase/conf/ folder, command: vi hbase.site.xml

 <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
</property>
<property>
    <name>hbase.rootdir</name>
    <value>hdfs://zaz01:9000/hbase</value>
</property>
<property>
    <name>hbase.master.info.port</name>
    <value>16010</value>
</property>
<property>
    <name>hbase.zookeeper.quorum</name>
    <value>zaz01:2181,zaz02:2181,zaz03:2181</value>
</property>
<property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
</property>
<property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
</property>
<property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
</property>
<property>
    <name>hbase.tmp.dir</name>
    <value>/home/hadoop/app/hbase/hbase_tmp</value>
</property>
<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/hadoop/app/hbase/zookeeper_data</value>
</property>

There is another to modify /etc/hosts/ under the root user
vi /etc/hosts/ This command:
Comment out the line ::1.

# ::1 ...

The time should also be synchronized:
First enter the root user,

cd /usr/share/zoneinfo/ #Enter time zone
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # Copy time
yum install ntp #download ntp, you don’t need to perform this step after downloading
ntpdate pool.ntp.org # Synchronize time
date #View time

Enter the above commands in sequence to complete the time synchronization. Every name node must be synchronized.

Then enter on the web page: zaz01:16010
zaz01 is my host name, change to your own.

hbase

created at:08-16-2021
edited at: 08-16-2021: