Help Center/ MapReduce Service/ User Guide (Kuala Lumpur Region)/ Troubleshooting/ Using HBase/ HBase Failed to Start Due to Insufficient RegionServer Memory
Updated on 2022-12-14 GMT+08:00

HBase Failed to Start Due to Insufficient RegionServer Memory

Issue

The HBase service fails to start because the remaining RegionServer memory is insufficient.

Cause Analysis

The troubleshooting process is as follows:

  1. Log in to the master node, go to the /var/log/Bigdata directory, and search for the HBase log. The log contains error message "connect regionserver timeout".
  2. Log in to the RegionServer node in 1 that cannot be connected to HMaster and go to the /var/log/Bigdata directory to search for the HBase log. The RegionServer reports error message "error='Cannot allocate memory'(errno=12)".
  3. According to the error message in 2, the startup failure is caused by insufficient RegionServer memory.

Procedure

  1. Log in to the RegionServer node where the error is reported and run the following command to check the remaining memory of the node:

    free -g

  2. Run the top command to check the memory usage of the node.
  3. Stop the memory-consuming processes (not the processes of the MRS components) as prompted and restart the HBase service.

    Besides MRS components, jobs on Yarn are allocated to core nodes in the cluster, thereby occupying node memory. If the startup failure is caused by memory-consuming Yarn jobs, you are advised to expand the capacity of core nodes.