Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

44 lines
4.7 KiB
HTML

<a name="mrs_01_24767"></a><a name="mrs_01_24767"></a>
<h1 class="topictitle1">Configuring Ranger Specifications</h1>
<div id="body0000001533315418"><div class="section" id="mrs_01_24767__section534215582818"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24767__p161351462915">Ranger provides permission policies for services. When the number of service instances using Ranger increases, you need to adjust the specifications of Ranger.</p>
<div class="note" id="mrs_01_24767__note058516565288"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24767__p13586856162819">This section applies only to MRS 3.2.0 or later.</p>
</div></div>
</div>
<div class="section" id="mrs_01_24767__section290618478101"><h4 class="sectiontitle">Configuring Memory Parameters</h4><ol id="mrs_01_24767__ol12968102412212"><li id="mrs_01_24767__li1396822411213"><span>Log in to FusionInsight Manager and choose <strong id="mrs_01_24767__b26251830222">Cluster</strong> &gt; <strong id="mrs_01_24767__b140915810224">Services</strong> &gt; <strong id="mrs_01_24767__b55961018202219">Ranger</strong>. Click <strong id="mrs_01_24767__b10761427162219">Configurations</strong> then <strong id="mrs_01_24767__b198891736122210">All Configurations</strong>, and search for <strong id="mrs_01_24767__b895215499237">GC_OPTS</strong> in the <strong id="mrs_01_24767__b161180268239">RangerAdmin JVM</strong> parameter. The default value of <strong id="mrs_01_24767__b1993519483245">GC_OPTS</strong> is <strong id="mrs_01_24767__b44756962518">-Dproc_rangeradmin -Xms2G -Xmx2G -XX:MaxDirectMemorySize=512M -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=200M -XX:PermSize=64M -XX:MaxPermSize=512M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:${RANGER_ADMIN_LOG_DIR}/gc-worker-%p-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=20 -XX:GCLogFileSize=20M -verbose:gc -Djdk.tls.ephemeralDHKeySize=3072 -Djava.security.auth.login.config=#{conf_dir}/jaas.conf -Djava.security.krb5.conf=${KRB5_CONFIG} -Dbeetle.application.home.path=${BIGDATA_HOME}/common/runtime/security/config -Djna.tmpdir=${RANGER_TMP_HOME} -Djava.io.tmpdir=${RANGER_TMP_HOME} ${JAVA_STACK_PREFER} -Djdk.tls.rejectClientInitiatedRenegotiation=true</strong>.</span></li></ol><ol start="2" id="mrs_01_24767__ol215992710210"><li id="mrs_01_24767__li66091358152112"><span>Change the value of <strong id="mrs_01_24767__b1645016632619">GC_OPTS</strong> in the <strong id="mrs_01_24767__b293645982512">RangerAdmin JVM</strong> parameter as follows:</span><p><p id="mrs_01_24767__p156444592218">Service instances that use Ranger include HDFS (NameNode), YARN (ResourceManager), HBase (HMaster and RegionServer), Hive (HiveServer), Kafka (Broker), Elasticsearch (EsNode, EsMaster, and EsClient), CDL (CDLService), and HetuEngine (HSBroker). When the number of these instances increases, change the default value <strong id="mrs_01_24767__b882365914355">-Xms2G -Xmx2G</strong> according to the reference RangerAdmin memory specifications listed below.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24767__table11500495122" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24767__row45021492121"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.2.2.1.3.1.1"><p id="mrs_01_24767__p15037931213">Ranger Instances</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.2.2.1.3.1.2"><p id="mrs_01_24767__p1950318981211">Reference Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24767__row195031390120"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.1 "><p id="mrs_01_24767__p14503179161211">200</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.2 "><p id="mrs_01_24767__p4503159201220">-Xms4G -Xmx4G</p>
</td>
</tr>
<tr id="mrs_01_24767__row45035917123"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.1 "><p id="mrs_01_24767__p1350317931210">400</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.2 "><p id="mrs_01_24767__p129201450151214">-Xms8G -Xmx8G</p>
</td>
</tr>
<tr id="mrs_01_24767__row165032971215"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.1 "><p id="mrs_01_24767__p16503189181210">600</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.2.2.1.3.1.2 "><p id="mrs_01_24767__p26056019134">-Xms12G -Xmx12G</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li></ol>
</div>
<p id="mrs_01_24767__p8060118"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1849.html">Using Ranger</a></div>
</div>
</div>