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

19 lines
2.5 KiB
HTML

<a name="mrs_01_2085"></a><a name="mrs_01_2085"></a>
<h1 class="topictitle1">Why Does a New Application Fail If a NodeManager Has Been in Unhealthy Status for 10 Minutes?</h1>
<div id="body1596167575154"><div class="section" id="mrs_01_2085__sd5412548b6c1475b9d11a352395fe905"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2085__aa610bfda21ad40c28e157dc57ea2c6a8">Why does a new application fail if a NodeManager has been in unhealthy status for 10 minutes?</p>
</div>
<div class="section" id="mrs_01_2085__se51b49a80319485db8fbc3fd28ce98e8"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2085__a30bf31c25da34deba3e5fc86076919b3">When <strong id="mrs_01_2085__b161329353392241">nodeSelectPolicy</strong> is set to <strong id="mrs_01_2085__b168755392892241">SEQUENCE</strong> and the first NodeManager connected to the ResourceManager is unavailable, the ResourceManager attempts to assign tasks to the same NodeManager in the period specified by <span class="parmname" id="mrs_01_2085__p92d6fc5a60ea41b69cc6d9430539346e"><b>yarn.nm.liveness-monitor.expiry-interval-ms</b></span>.</p>
<p id="mrs_01_2085__ac56e638968a147cb88b57a336e63da0f">You can use either of the following methods to avoid the preceding problem:</p>
<ul id="mrs_01_2085__u902b4b360da04c80a7f88b9c97206f60"><li id="mrs_01_2085__lf2bf3eb3ca5b4e0cb9fdf9b00cb64bab">Use another nodeSelectPolicy, for example, <strong id="mrs_01_2085__b173484191292241">RANDOM</strong>.</li><li id="mrs_01_2085__l51529937c3d7498abdeaa186fcf59ecb">Go to the <strong id="mrs_01_2085__b9473165214711">All Configurations</strong> page of Yarn by referring to <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a>. Search for the following parameters in the search box and modify the following attributes in the <span class="filepath" id="mrs_01_2085__fee7a0b21161d499a8ed8ae68ff7f56b3"><b>yarn-site.xml</b></span> file:<p id="mrs_01_2085__a4273c437ee5f4cd8938b37a88f2c99f9"><strong id="mrs_01_2085__b108317946192241">yarn.resourcemanager.am-scheduling.node-blacklisting-enabled</strong> = <strong id="mrs_01_2085__b95322688492241">true</strong>;</p>
<p id="mrs_01_2085__a1dcfd372b54044c0ad457152322bd4b7"><strong id="mrs_01_2085__b69425208892241">yarn.resourcemanager.am-scheduling.node-blacklisting-disable-threshold</strong> = <strong id="mrs_01_2085__b132048581692241">0.5</strong>.</p>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2077.html">Common Issues About Yarn</a></div>
</div>
</div>