Files
doc-exports/docs/mrs/umn/admin_guide_000024.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
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>
2024-05-16 09:40:21 +00:00

20 lines
3.5 KiB
HTML

<a name="admin_guide_000024"></a><a name="admin_guide_000024"></a>
<h1 class="topictitle1">Updating the hosts File in Batches</h1>
<div id="body1568106050360"><div class="section" id="admin_guide_000024__section872044116116"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000024__p17813105152019">The client package downloaded from <span id="admin_guide_000024__text154091129192818">MRS</span> Manager contains the client batch upgrade tool. This tool provides the function of upgrading clients in batches and the lightweight function of batch updating the <span class="filepath" id="admin_guide_000024__filepath5184659122717"><b>/etc/hosts</b></span> file on the node where the client is located.</p>
</div>
<div class="section" id="admin_guide_000024__section15722105592216"><h4 class="sectiontitle">Prerequisites</h4><p id="admin_guide_000024__p14100959142210">You have made preparations for the upgrade. For details, see "Prepare for the client upgrade." in <a href="admin_guide_000023.html">Batch Upgrading Clients</a>.</p>
</div>
<div class="section" id="admin_guide_000024__section205956116520"><h4 class="sectiontitle">Updating the hosts File in Batches</h4><ol id="admin_guide_000024__ol5421392414"><li id="admin_guide_000024__li48541030966"><span>Check whether the user configured for the node where the <span class="filepath" id="admin_guide_000024__filepath1887919717250"><b>/etc/hosts</b></span> file needs to be updated is <span class="parmname" id="admin_guide_000024__parmname1985718259259"><b>root</b></span>.</span><p><ul id="admin_guide_000024__ul660914514611"><li id="admin_guide_000024__li106091951363">If yes, go to <a href="#admin_guide_000024__li11411382418">2</a>.</li><li id="admin_guide_000024__li152921154067">If no, change the user to <span class="parmname" id="admin_guide_000024__parmname1176912852516"><b>root</b></span> and go to <a href="#admin_guide_000024__li11411382418">2</a>.</li></ul>
</p></li><li id="admin_guide_000024__li11411382418"><a name="admin_guide_000024__li11411382418"></a><a name="li11411382418"></a><span>Run the <strong id="admin_guide_000024__b953544605319">sh client_batch_upgrade.sh -r -f /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_Client.tar -g /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_ClientConfig/batch_upgrade/client-info.cfg</strong> command to batch update the <span class="filepath" id="admin_guide_000024__filepath105781554195312"><b>/etc/hosts</b></span> file on the nodes where the client resides.</span><p><div class="note" id="admin_guide_000024__note8888536151114"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="admin_guide_000024__ul888344613112"><li id="admin_guide_000024__li688434615115">When you batch update the <span class="filepath" id="admin_guide_000024__filepath48001652202519"><b>/etc/hosts</b></span> file, the entered client package can be a complete client package or a client package that contains only configuration files (recommended).</li><li id="admin_guide_000024__li48845466112">The user configured for the host where the <span class="filepath" id="admin_guide_000024__filepath473853819266"><b>/etc/hosts</b></span> file needs to be updated must be <strong id="admin_guide_000024__b1364084412268">root</strong>. Otherwise, the update fails.</li></ul>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000021.html">Managing Clients</a></div>
</div>
</div>