For information on changing the shape, see Changing the Shape of a Cluster Node.
You must update regionserver memory after changing the shape of an HBase cluster. For example, if the Big Data Service cluster has HBase installed and the node shape is changed from VM.Standard.E4.Flex (64 GB) to VM.DenseIO.E4.Flex (128 GB), you must reset the Regionserver heap memory and nodemanager by completing the following steps:
-
Access Apache Ambari.
-
From the side toolbar, under Services click YARN.
-
Click the Configs tab and select Settings.
-
Make note of the node manager memory.
nodemanager_memory = value of ('yarn.nodemanager.resource.memory-mb') configuation
-
From the side toolbar, under Services click HBase.
-
Click the Configs tab and select Settings.
-
Increase HBase RegionServer maximum memory.
regionserver heap memory (regionserver_heap_memory)= 32 GB or (0.5 * nodemanager_memory), which ever is lesser.(Max regionserver memory cap is 32 GB)
-
Reset the nodemanager memory.
- From the side toolbar, under Services click YARN.
- Click the Configs tab and select Settings.
yarn.nodemanager.resource.memory-mb = nodemanager_memory - regionserver_heap_memory