Solve the problem that hmaster hangs up due to namenode switching in Ha mode
Question:
When we build our own big data cluster for learning, the virtual machine often gets stuck and the nodes hang up inexplicably because the machine configuration is not high enough.
In Hadoop’s highly available cluster, the machine configuration is not enough, and the two namenodes always switch state automatically, resulting in the hang up of the hmaster node of the HBase cluster.
Causes of problems:
Let’s check the master log of HBase:
# Go to the log file directory
[root@hadoop001 ~]# cd /opt/module/hbase-1.3.1/logs/
[root@hadoop001 logs]# vim hbase-root-master-hadoop001.log
From the log, it is easy to find that the error is caused by the active/standby switching of namenode.
resolvent:
1. Modify the hbase-site.xml configuration file
Modify the configuration of base.roodir
<property>
<name>hbase.roodir</name>
<value>hdfs://hadoop001:9000/hbase</value>
</property>
# change to
<property>
<name>hbase.roodir</name>
<value>hdfs://ns/hbase</value>
</property>
# Note that the ns here is the value of hadoop's dfs.nameservices (configured in hdfs-site-xml, fill in according to your own configuration)
2. Establish soft connection
[root@hadoop001 ~]# ln -s /opt/module/hadoop-2.7.6/etc/hadoop/hdfs-site.xml /opt/module/hbase-1.3.1/conf/hdfs-site.xml
[root@hadoop001 ~]# ln -s /opt/module/hadoop-2.7.6/etc/hadoop/core-site.xml /opt/module/hbase-1.3.1/conf/core-site.xml
3. Synchronize HBase profiles for all clusters
Use SCP instruction to distribute to other nodes
Then restart the cluster to solve the hang up problem of the hmaster node
Read More:
- [Solved] ERROR: Attempting to operate on hdfs namenode as root ERROR: but there is no HDFS_NAMENODE_USER defi
- [Solved] Hadoop Start NameNode Error: ERROR: Cannot set priority of namenode process 2639
- Hadoop ERROR: Attempting to operate on hdfs namenode as root ERROR: but there is no HDFS_NAMENODE_US
- How to Solve Vue & Django Cross-domain Issue
- How to Solve HBase error: region is not online
- How to Solve Error: Unkown Mixed bake mode in LightModeUtil.MapSettings() UnityEditor.DockArea:OnGUI()
- How to Solve forEach cannot exit the loop Issue
- [Solved] Fe node hangs up and restarts with an error sleepycat.je.locktimeoutexception: (JE 7.3.7) lock expired
- How to Solve Altium designer Rule Check Without an Error Issue
- How to Solve HiveServer2 & Beeline Error
- How to Solve Zeppelin page 503 error
- [Solved] hbase Startup Error: ERROR: Can’t get master address from ZooKeeper; znode data == null
- [Solved] Hadoop Error: ERROR: Cannot set priority of namenode process
- How to Solve hadoop3.x.x sh start-dfs.sh Startup Error
- [Solved] Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.
- How to Solve spark Writes Files to odps Error
- How to Solve null/hadoopbinary/wintils.exe Error
- How to Solve elasticSearch8.1.2 Install Error in Win10
- How to Fix Error 1069:The service did not start due to a logon failure
- How to Solve VMware Workstation Error: This virtual machine appears to be in use.