forked from docs/doc-exports
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>
36 lines
12 KiB
HTML
36 lines
12 KiB
HTML
<a name="mrs_01_2129"></a><a name="mrs_01_2129"></a>
|
|
|
|
<h1 class="topictitle1">Updating a Client (Version 3.x or Later)</h1>
|
|
<div id="en-us_topic_0000001142158626_body0000001142158626"><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a98490068f66048fc8cf71fd087cab21a">A cluster provides a client for you to connect to a server, view task results, or manage data. If you modify service configuration parameters on Manager and restart the service, you need to download and install the client again or use the configuration file to update the client.</p>
|
|
<div class="section" id="mrs_01_2129__en-us_topic_0000001142158626_section17728154711371"><h4 class="sectiontitle">Updating the Client Configuration</h4><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_p16939181512175"><strong id="mrs_01_2129__en-us_topic_0000001142158626_b18371380751550">Method 1</strong>:</p>
|
|
<ol id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_o912ceec73ae14d1c975c18feba82f3d8"><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l58da34b5da5442fe9e9cb1a05429a026"><span>Log in to FusionInsight Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager (MRS 3.x or Later)</a>.<span id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_text14228332717"> Click the name of the cluster to be operated in the <strong id="mrs_01_2129__en-us_topic_0000001142158626_b38033083718">Cluster</strong> drop-down list.</span></span></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_le8bf081ea07a4651b5b877bfdec5c7a5"><span>Choose <span class="menucascade" id="mrs_01_2129__en-us_topic_0000001142158626_menucascade138182844251550"><b><span class="uicontrol" id="mrs_01_2129__en-us_topic_0000001142158626_uicontrol198844334651550">More</span></b> > <b><span class="uicontrol" id="mrs_01_2129__en-us_topic_0000001142158626_uicontrol23655108351550">Download Client</span></b> > <b><span class="uicontrol" id="mrs_01_2129__en-us_topic_0000001142158626_uicontrol156456463251550">Configuration Files Only</span></b></span>.</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_en-us_topic_0118210222_p161253268918">The generated compressed file contains the configuration files of all services.</p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_p1372623817389"></p>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_lf2f080fef36e40aa92027fe0d2aefd2e"><span>Determine whether to generate a configuration file on the cluster node.</span><p><ul id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_ubf5c670c648c4ab496bd990f2f2358b7"><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l0b7d22ca6dee461982d9601e13edd7a2">If yes, select <strong id="mrs_01_2129__en-us_topic_0000001142158626_b7403104310401">Save to Path</strong>, and click <strong id="mrs_01_2129__en-us_topic_0000001142158626_b2040344319402">OK</strong> to generate the client file. By default, the client file is generated in <strong id="mrs_01_2129__en-us_topic_0000001142158626_b1240344374012">/tmp/FusionInsight-Client</strong> on the active management node. You can also store the client file in other directories, and user <strong id="mrs_01_2129__en-us_topic_0000001142158626_b8524194514015">omm</strong> has the read, write, and execute permissions on the directories. Then go to <a href="#mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l6af983f03121493ca3526296f5b650c3">4</a>.</li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l442afd4b24d6472fa53534a2419fdd66">If no, click <strong id="mrs_01_2129__en-us_topic_0000001142158626_b165410112414">OK</strong>, specify a local save path, and download the complete client. Wait until the download is complete and go to <a href="#mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l6af983f03121493ca3526296f5b650c3">4</a>.</li></ul>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l6af983f03121493ca3526296f5b650c3"><a name="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l6af983f03121493ca3526296f5b650c3"></a><a name="en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l6af983f03121493ca3526296f5b650c3"></a><span>Use WinSCP to save the compressed file to the client installation directory, for example, <strong id="mrs_01_2129__en-us_topic_0000001142158626_b21141418154114">/opt/hadoopclient</strong>, as the client installation user.</span></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_le9718c36cb0f482bbff3511ca5e68cc4"><span>Decompress the software package.</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a9c0c31d22b014e32ba184f04d18f098d">Run the following commands to go to the directory where the client is installed, and decompress the file to a local directory. For example, the downloaded client file is <strong id="mrs_01_2129__en-us_topic_0000001142158626_b14103997051550">FusionInsight_Cluster_1_Services_Client.tar</strong>.</p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_p1280219113414"><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b61633073413">cd /opt/hadoopclient</strong></p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a334003ebce56447b9fd28b26e43f44c2"><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a8e8bc48c236a427682ae43a3497a238b">tar -xvf </strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b148011311300">FusionInsight_Cluster_1_</strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b1590931143015">Services_Client.tar</strong></p>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l18cdd36d0c8744d59be686e3ba2e6bab"><span>Verify the software package.</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a59432dea50db46b9a63996bec8c41455">Run the following command to verify the decompressed file and check whether the command output is consistent with the information in the <strong id="mrs_01_2129__en-us_topic_0000001142158626_b631623434316">sha256</strong> file.</p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_ad1d64ad2c8ee47a996c800b033dc0cde"><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a2b329f4ec2e9465290c09cf9a9141664">sha256sum -c </strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b5449347143414">FusionInsight_<strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b15661799314">Cluster_1_</strong>Services_ClientConfig_ConfigFiles.tar.sha256</strong></p>
|
|
<pre class="screen" id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_s484da549b8d24fdea1bf8b0f904254cf">FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles.tar: OK </pre>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l72d383dc642140f7821e7ec52d9a65d7"><span>Decompress the package to obtain the configuration file.</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a78865fccd1b047aaa3bca1a7abf14637"><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a9b036dff49e341c78c0f76b5b8f18efa">tar -xvf FusionInsight_<strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b5328621113117">Cluster_1_</strong>Services_ClientConfig_ConfigFiles.tar</strong></p>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_l83c0701996d84f81bf153af29d8426ae"><span>Run the following command in the client installation directory to update the client using the configuration file:</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a319aa07dcae34cc388506dd241779368"><strong id="mrs_01_2129__en-us_topic_0000001142158626_b101789283451550">sh refreshConfig.sh </strong><em id="mrs_01_2129__en-us_topic_0000001142158626_i70814525051550">Client installation directory</em> <em id="mrs_01_2129__en-us_topic_0000001142158626_i200630211851550">Directory where the configuration file is located</em></p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_p075794511439">For example, run the following command:</p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_en-us_topic_0118210222_p1615585183"><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_aaf45276c9b7d4a3f9ded04c33d6730d4">sh refreshConfig.sh</strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a44e561c3fc68438c94a976edc4c3169e"> /opt/hadoopclient /opt/<strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b10814204953813">hadoop</strong>client/</strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a69113eba3c9e4f5f9c2c9d9c2a381e03">FusionInsight</strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_a037dbbc180074df4bd5238beab709409">_Cluster_1_Services_ClientConfig</strong><strong id="mrs_01_2129__en-us_topic_0263899336_en-us_topic_0193213946_b191411411395">_ConfigFiles</strong></p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_a4a81bd0e045d4a0c98a9f62a4be30267">If the following information is displayed, the configurations have been updated successfully.</p>
|
|
<pre class="screen" id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_en-us_topic_0193213946_s588966ec0e264a56b5dfd417a156e83c">Succeed to refresh components client config.</pre>
|
|
</p></li></ol>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_p95661637191714"><strong id="mrs_01_2129__en-us_topic_0000001142158626_b53524549751550">Method 2</strong>:</p>
|
|
<ol id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_ol1616714549176"><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_li7167115410173"><span>Log in to the client installation node as user <strong id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_b0282163151817">root</strong>.</span></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_li19633216161814"><span>Go to the client installation directory, for example, <strong id="mrs_01_2129__en-us_topic_0000001142158626_b3207115154415">/opt/hadoopclient</strong> and run the following commands to update the configuration file:</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_p10834123641810"><strong id="mrs_01_2129__en-us_topic_0263899336_b1183563641818">cd /opt/hadoopclient</strong></p>
|
|
<p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_p1883514368189"><strong id="mrs_01_2129__en-us_topic_0263899336_b2083519367188">sh autoRefreshConfig.sh</strong></p>
|
|
</p></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_li19673114761815"><span>Enter the username and password of the FusionInsight Manager administrator and the floating IP address of FusionInsight Manager.</span></li><li id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_li28987711911"><span>Enter the names of the components whose configuration needs to be updated. Use commas (,) to separate the component names. Press <strong id="mrs_01_2129__en-us_topic_0000001142158626_b140828713651550">Enter</strong> to update the configurations of all components if necessary.</span><p><p id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_p1469020151195">If the following information is displayed, the configurations have been updated successfully.</p>
|
|
<pre class="screen" id="mrs_01_2129__en-us_topic_0000001142158626_en-us_topic_0263899336_screen1450813278195">Succeed to refresh components client config.</pre>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2126.html">Using an MRS Client</a></div>
|
|
</div>
|
|
</div>
|
|
|