forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
30 lines
6.0 KiB
HTML
30 lines
6.0 KiB
HTML
<a name="admin_guide_000125"></a><a name="admin_guide_000125"></a>
|
|
|
|
<h1 class="topictitle1">Clearing Non-associated Queues of a Tenant</h1>
|
|
<div id="body1529658735914"><div class="section" id="admin_guide_000125__s94bd05867723402788c78624748a68a1"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000125__a569771597d454b65a242498cf132b910">If Yarn uses the Capacity scheduler, deleting a tenant only sets the queue capacity of the tenant to <strong id="admin_guide_000125__b07591029104920">0</strong> and the tenant status to <strong id="admin_guide_000125__b495910254819">STOPPED</strong> but does not clear the queues of the tenant in Yarn. Limited by the Yarn mechanism, queues cannot be dynamically deleted. You can run commands to manually delete residual queues.</p>
|
|
</div>
|
|
<div class="section" id="admin_guide_000125__section035427203612"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000125__ul7844182611367"><li id="admin_guide_000125__li4844152614366">During the script execution, the Controller service is restarted, Yarn configurations are synchronized, and the active and standby ResourceManagers are restarted.</li><li id="admin_guide_000125__li1884482612366"><span id="admin_guide_000125__text15946118176">MRS</span> Manager becomes inaccessible during the restart of the Controller service.</li><li id="admin_guide_000125__li6844112610360">After the active and standby ResourceManagers are restarted, an alarm is generated indicating that Yarn and components that depend on Yarn are temporarily unavailable.</li></ul>
|
|
</div>
|
|
<div class="section" id="admin_guide_000125__s24257ed61c9f43209a08e354c61dac50"><h4 class="sectiontitle">Prerequisites</h4><p id="admin_guide_000125__p12129174443415">Queues of a deleted tenant still exist.</p>
|
|
</div>
|
|
<div class="section" id="admin_guide_000125__section7614183215345"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000125__o88191e015e044d309a92696a8aa68402"><li id="admin_guide_000125__l9a2c92fa37584d3eb973d1faebe54d94"><span>Check that queues of the deleted tenant still exist.</span><p><ol type="a" id="admin_guide_000125__oeb6b212f7c564eb28c8c5f37db1e0873"><li id="admin_guide_000125__l723e1b5e172c4684a810c78d835f2929">On <span id="admin_guide_000125__text572193914488">MRS</span> Manager, choose <strong id="admin_guide_000125__b12585205441415">Cluster</strong>, click the name of the target cluster, and choose <strong id="admin_guide_000125__b15986135420169">Services</strong> > <strong id="admin_guide_000125__b18560256181619">Yarn</strong>. Click the link of the active ResourceManager in <strong id="admin_guide_000125__b13496121141920">ResourceManager WebUI</strong> to go to the ResourceManager web UI.</li><li id="admin_guide_000125__l1c401fbd9a6f40d9aa8c0fada456aa1a">Click <strong id="admin_guide_000125__b2574832201910">Scheduler</strong> in the navigation tree on the left. In the right pane, you can view that queues of the tenant still exist in the <strong id="admin_guide_000125__b575515376227">STOPPED</strong> state and their <strong id="admin_guide_000125__b203411943142211">Configured Capacity</strong> is <strong id="admin_guide_000125__b1985005015227">0</strong>.</li></ol>
|
|
</p></li><li id="admin_guide_000125__ldafcbe6c27564badba0d7e458ad2d6f3"><span>Log in to the active management node as user <strong id="admin_guide_000125__b353112992511">omm</strong>.</span></li><li id="admin_guide_000125__la1a9371b0b2e4ddbaa341b277b54c532"><span>Switch the directory and execute the <strong id="admin_guide_000125__b1671585352716">cleanQueuesAndRestartRM.sh</strong> script.</span><p><p id="admin_guide_000125__a1c12d0d68a2b40719be827871d519fc6"><strong id="admin_guide_000125__b66038489153148">cd ${BIGDATA_HOME}/om-server/om/sbin</strong></p>
|
|
<p id="admin_guide_000125__en-us_topic_0045557298_p432839114125"><strong id="admin_guide_000125__a5d2ae147d11144b49ef7f13930825cce">./cleanQueuesAndRestartRM.sh</strong> <strong id="admin_guide_000125__b18737113135914">-c </strong><em id="admin_guide_000125__i9738183115920">Cluster ID</em></p>
|
|
<div class="note" id="admin_guide_000125__note10298321174210"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000125__p1730017211425">You can choose <strong id="admin_guide_000125__b479513311293">Cluster</strong>, click the cluster name, and choose <strong id="admin_guide_000125__b47914103304">Cluster Properties</strong> on <span id="admin_guide_000125__text1060214119486">MRS</span> Manager to view the cluster ID.</p>
|
|
</div></div>
|
|
<p id="admin_guide_000125__a63ca40975c3b46b7a7bba7b535f9caaa">During the script execution, you need to enter <strong id="admin_guide_000125__a2154870cea624b3da45bf1119c1e6482">yes</strong> and the password.</p>
|
|
<pre class="screen" id="admin_guide_000125__s169360fdb9474c2eb71347f847751f83">Running the script will restart Controller and restart ResourceManager.
|
|
Are you sure you want to continue connecting (yes/no)?<strong id="admin_guide_000125__b68973197151">yes</strong>
|
|
Please input admin password:
|
|
Begin to backup queues ...
|
|
...</pre>
|
|
</p></li><li id="admin_guide_000125__lfae13938389443d0b37ff78cde4b50da"><span>After the script is executed successfully, log in to <span id="admin_guide_000125__text1647511438487">MRS</span> Manager, choose <strong id="admin_guide_000125__b11287033193210">Cluster</strong>, click the cluster name, and choose <strong id="admin_guide_000125__b159901347123218">Services</strong> > <strong id="admin_guide_000125__b1999084743210">Yarn</strong>. Click the link of the active ResourceManager in <strong id="admin_guide_000125__b10367121063314">ResourceManager WebUI</strong> to go to the ResourceManager web UI.</span></li><li id="admin_guide_000125__lb72695121fe0402f93705ccf50a73c98"><span>Click <strong id="admin_guide_000125__b783223520333">Scheduler</strong> in the navigation tree on the left. In the right pane, you can view that queues of the tenant have been cleared.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000121.html">Managing Tenants</a></div>
|
|
</div>
|
|
</div>
|
|
|