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

42 lines
4.6 KiB
HTML

<a name="mrs_01_0867"></a><a name="mrs_01_0867"></a>
<h1 class="topictitle1">Configuring the Localized Log Levels</h1>
<div id="body1590130748001"><p id="mrs_01_0867__p66802238367">This section applies to clusters of MRS 3.<em id="mrs_01_0867__i14826821195919">x</em> or later.</p>
<div class="section" id="mrs_01_0867__s990da5b599824a12b2f8225483b0e071"><h4 class="sectiontitle">Scenarios</h4><p id="mrs_01_0867__a5ab6ad659ba84bf0a269f196bc189af3">The default log level of localized container is <strong id="mrs_01_0867__b209217892642444">INFO</strong>. You can change the log level by configuring <span class="parmname" id="mrs_01_0867__p7b22cd2663784c23bed8bb1648ca6e6f"><b>yarn.nodemanager.container-localizer.java.opts</b></span>.</p>
</div>
<div class="section" id="mrs_01_0867__scc3409cedf794d52baf9ca864b1abf1a"><h4 class="sectiontitle">Configuration Description</h4><p id="mrs_01_0867__p7596195714312">On Manager, choose <strong id="mrs_01_0867__b2481171412373">Cluster </strong>&gt; <em id="mrs_01_0867__i19563317103711">Name of the desired cluster</em> &gt; <strong id="mrs_01_0867__b1278801913717">Service </strong>&gt; <strong id="mrs_01_0867__b1824516213375">Yarn </strong>&gt; <strong id="mrs_01_0867__b11876322163710">Configuration</strong>. Select <span class="parmvalue" id="mrs_01_0867__parmvalue11901674491"><b>All Configurations</b></span> and set the following parameters in the configuration file <span class="filepath" id="mrs_01_0867__f48df2614b65a4d979495c15d03ac4ef8"><b>yarn-site.xml</b></span> of NodeManager to change the log level.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0867__t7d140fb95ac94e518cac42efe5b6d9a9" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_0867__rd54dc32f171e43f4b01575210a6665e2"><th align="left" class="cellrowborder" valign="top" width="33.226677332266775%" id="mcps1.3.3.3.2.4.1.1"><p id="mrs_01_0867__en-us_topic_0039590405_p267079291028"><strong id="mrs_01_0867__a3c812bd8ad484dce9b60c76e1fe1f3db">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.13608639136087%" id="mcps1.3.3.3.2.4.1.2"><p id="mrs_01_0867__en-us_topic_0039590405_p85101951028"><strong id="mrs_01_0867__a668b1502648743ae9e63bcceccbdd803">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.637236276372363%" id="mcps1.3.3.3.2.4.1.3"><p id="mrs_01_0867__en-us_topic_0039590405_p299166681028">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0867__re21c329dfef8458fb17b5fe3dc12aa4a"><td class="cellrowborder" valign="top" width="33.226677332266775%" headers="mcps1.3.3.3.2.4.1.1 "><p id="mrs_01_0867__en-us_topic_0039590405_p427266861028">yarn.nodemanager.container-localizer.java.opts</p>
</td>
<td class="cellrowborder" valign="top" width="39.13608639136087%" headers="mcps1.3.3.3.2.4.1.2 "><p id="mrs_01_0867__a484c044b13344cee8c67a4a3ff1e5a45">The additional <strong id="mrs_01_0867__b148401414442444">jvm</strong> parameters are provided for the localized container process.</p>
</td>
<td class="cellrowborder" valign="top" width="27.637236276372363%" headers="mcps1.3.3.3.2.4.1.3 "><p id="mrs_01_0867__en-us_topic_0039590405_p160660311028">-Xmx256m -Djava.security.krb5.conf=${KRB5_CONFIG}</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_0867__ac46b6760d7ce41c1b79f4f560b928439">The default value is <strong id="mrs_01_0867__b5213100015">-Xmx256m -Djava.security.krb5.conf=${KRB5_CONFIG}</strong> and the default log level is info. To change the localized log level of the container, add the following content:</p>
<pre class="screen" id="mrs_01_0867__sd227fb4c4db94fbfa09dd7188c1a4945">-Dhadoop.root.logger=&lt;LOG_LEVEL&gt;,localizationCLA</pre>
<p id="mrs_01_0867__a7af6e86fb4974ea7b42e78f947c06791"><strong id="mrs_01_0867__a23db957fe2344769b53250bfb9c87878">Example:</strong></p>
<p id="mrs_01_0867__a7bf4b708574c4b1e9cdc3a0a622402a0">To change the local log level to <strong id="mrs_01_0867__b28976628742444">DEBUG</strong>, set the parameter as follows:</p>
<pre class="screen" id="mrs_01_0867__saa6423264eff48ef8c54a9bbd736199e">-Xmx256m -Dhadoop.root.logger=DEBUG,localizationCLA</pre>
<div class="note" id="mrs_01_0867__ne8f28c94a2004cf8944387b78965975c"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0867__a46d4ac22e24b43838ac8018b513d0496">Allowed log levels are as follows: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, and ALL.</p>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0851.html">Using Yarn</a></div>
</div>
</div>