Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

59 lines
5.4 KiB
HTML

<a name="mrs_01_1019"></a><a name="mrs_01_1019"></a>
<h1 class="topictitle1">Optimizing JVM Parameters</h1>
<div id="body1590128863846"><div class="section" id="mrs_01_1019__s1b2ee2c9093c4228adbfc35c6d501e70"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1019__a4d86a30ec10043a4b6e3f7efbbb83986">When the number of clusters reaches a certain scale, the default settings of the Java virtual machine (JVM) cannot meet the cluster requirements. In this case, the cluster performance deteriorates or the clusters may be unavailable. Therefore, JVM parameters must be properly configured based on actual service conditions to improve the cluster performance.</p>
</div>
<div class="section" id="mrs_01_1019__s610a064821c4401189c2543ed8a29269"><h4 class="sectiontitle">Procedure</h4><p id="mrs_01_1019__ac0da95effa824662b7f301baea54e272"><strong id="mrs_01_1019__b111717583920">Navigation path for setting parameters:</strong></p>
<p id="mrs_01_1019__a22cdd321b8fb448089450839cc461531">The JVM parameters related to the HBase role must be configured in the <strong id="mrs_01_1019__b10696132433614">hbase-env.sh</strong> file in the <strong id="mrs_01_1019__b15182231143616">${BIGDATA_HOME}/FusionInsight_HD_*/install/FusionInsight-HBase-2.2.3/hbase/conf/</strong> directory of the node where the HBase service is installed.</p>
<p id="mrs_01_1019__aaa3a7f6af2bf4d44a62bd3ae98335ee4">Each role has JVM parameter configuration variables, as shown in <a href="#mrs_01_1019__t2451c7af790c44cc8f895f6d4dc68b55">Table 1</a>.</p>
<div class="tablenoborder"><a name="mrs_01_1019__t2451c7af790c44cc8f895f6d4dc68b55"></a><a name="t2451c7af790c44cc8f895f6d4dc68b55"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1019__t2451c7af790c44cc8f895f6d4dc68b55" frame="border" border="1" rules="all"><caption><b>Table 1 </b>HBase-related JVM parameter configuration variables</caption><thead align="left"><tr id="mrs_01_1019__r00cd51786a764f95925a541d03779c8a"><th align="left" class="cellrowborder" valign="top" width="37.78%" id="mcps1.3.2.5.2.3.1.1"><p id="mrs_01_1019__a2bdeb9e6c47d49d4aa136666ccb8ad6a"><strong id="mrs_01_1019__afd8a5faa85de4fad90c9f49979424189">Variable</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.22%" id="mcps1.3.2.5.2.3.1.2"><p id="mrs_01_1019__ac120df50e107409f8c31f415f398219a"><strong id="mrs_01_1019__a1624b3bdc94d446a9cd16d68a613488e">Affected Role</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1019__r9310baa316e74140b8d720b3aa9bcbcf"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__a9b3021e8a34a4ad8b9140ac60451c5d9">HBASE_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__a19c9c11270cd4ca48bd9731a19fe1653">All roles of HBase</p>
</td>
</tr>
<tr id="mrs_01_1019__raa9102e947f145aca22210ebe856b856"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__af609aad877fb41d68153db7b42abca5f">SERVER_GC_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__a3a5e2ea1976f4c4cb531d8ffc01a5fa9">All roles on the HBase server, such as Master and RegionServer</p>
</td>
</tr>
<tr id="mrs_01_1019__r997bbe12972145818ff6b90f7cd4635a"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__a6f16c86c40c14b54ab4c532c99351e48">CLIENT_GC_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__a4b46dafa85f94d87891ee09429fc06f1">Client process of HBase</p>
</td>
</tr>
<tr id="mrs_01_1019__rf6c68dbd6a2244f58bc35b7d45128fd4"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__a51f086e44d4244e49c4490f554aad38d">HBASE_MASTER_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__a965cd245d40f48549618617129bfcf2e">Master of HBase</p>
</td>
</tr>
<tr id="mrs_01_1019__rf9ed4feff013450ab6a1d50bcfd9aa16"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__a1cc78bde251f450d9aaefcc6e20258c9">HBASE_REGIONSERVER_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__ae0863dab0fb245a19e2048f442467eaa">RegionServer of HBase</p>
</td>
</tr>
<tr id="mrs_01_1019__r7c134b72de564890b1c553f80674fd69"><td class="cellrowborder" valign="top" width="37.78%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_1019__a829a47c852b34a1cad8061b95e3b3121">HBASE_THRIFT_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="62.22%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_1019__adbabb89ad78f4b138e8c484e3043e24d">Thrift of HBase</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_1019__aec1bddb971184774bcc87b5544b204c8"><strong id="mrs_01_1019__aada8fde242bd45f6b253371c0f5396ff">Configuration example:</strong></p>
<pre class="screen" id="mrs_01_1019__s46b5f296ab944f99a77efd7f41dfd8da">export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS"</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1013.html">HBase Performance Tuning</a></div>
</div>
</div>