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

97 lines
29 KiB
HTML

<a name="mrs_01_2128"></a><a name="mrs_01_2128"></a>
<h1 class="topictitle1">Installing a Client (Versions Earlier Than 3.x)</h1>
<div id="body8662426"><div class="section" id="mrs_01_2128__en-us_topic_0264269418_section47062638171526"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_2128__en-us_topic_0264269418_p5490111805311">An MRS client is required. The MRS cluster client can be installed on the Master or Core node in the cluster or on a node outside the cluster.</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p19490118125318">After a cluster of versions earlier than MRS 3.x is created, a client is installed on the active Master node by default. You can directly use the client. The installation directory is <strong id="mrs_01_2128__en-us_topic_0264269418_b15312104115110">/opt/client</strong>.</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p460741375812">For details about how to install a client of MRS 3.x or later, see <a href="mrs_01_2127.html">Installing a Client (Version 3.x or Later)</a>.</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p34591823171548"></p>
</div>
<div class="note" id="mrs_01_2128__en-us_topic_0264269418_note2753387018453"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2128__en-us_topic_0264269418_p10340195017527">If a client has been installed on the node outside the MRS cluster and the client only needs to be updated, update the client using the user who installed the client, for example, user <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname11924596184555"><b>root</b></span>.</p>
</div></div>
<div class="section" id="mrs_01_2128__en-us_topic_0264269418_section3219221104310"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_2128__en-us_topic_0264269418_ul26645308104434"><li id="mrs_01_2128__en-us_topic_0264269418_li37425717104434">An ECS has been prepared. For details about the OS and its version of the ECS, see <a href="#mrs_01_2128__en-us_topic_0264269418_table40818788104630">Table 1</a>.
<div class="tablenoborder"><a name="mrs_01_2128__en-us_topic_0264269418_table40818788104630"></a><a name="en-us_topic_0264269418_table40818788104630"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2128__en-us_topic_0264269418_table40818788104630" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Reference list</caption><thead align="left"><tr id="mrs_01_2128__en-us_topic_0264269418_row38578049104630"><th align="left" class="cellrowborder" valign="top" width="29.411764705882355%" id="mcps1.3.3.2.1.2.2.3.1.1"><p id="mrs_01_2128__en-us_topic_0264269418_p37814246104630">OS</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70.58823529411765%" id="mcps1.3.3.2.1.2.2.3.1.2"><p id="mrs_01_2128__en-us_topic_0264269418_p43055100104630">Supported Version</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_2128__en-us_topic_0264269418_row3952911204620"><td class="cellrowborder" valign="top" width="29.411764705882355%" headers="mcps1.3.3.2.1.2.2.3.1.1 "><p id="mrs_01_2128__en-us_topic_0264269418_p1341716202466">EulerOS</p>
</td>
<td class="cellrowborder" valign="top" width="70.58823529411765%" headers="mcps1.3.3.2.1.2.2.3.1.2 "><ul id="mrs_01_2128__en-us_topic_0264269418_ul16570141110378"><li id="mrs_01_2128__en-us_topic_0264269418_li35709116377">Available: EulerOS 2.2</li><li id="mrs_01_2128__en-us_topic_0264269418_li1371295143814">Available: EulerOS 2.3</li><li id="mrs_01_2128__en-us_topic_0264269418_li5827574386">Available: EulerOS 2.5</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_2128__en-us_topic_0264269418_p4230068214289">For example, a user can select the enterprise image <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname6290568016043"><b>Enterprise_SLES11_SP4_latest(4GB)</b></span> or standard image <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname2928021516043"><b>Standard_CentOS_7.2_latest(4GB)</b></span> to prepare the OS for an ECS.</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p1282531142624">In addition, sufficient disk space is allocated for the ECS, for example, 40 GB.</p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li7335267104528">The ECS and the MRS cluster are in the same VPC.</li><li id="mrs_01_2128__en-us_topic_0264269418_li17980589104436">The security group of the ECS is the same as that of the Master node of the MRS cluster.<p id="mrs_01_2128__en-us_topic_0264269418_p6456117911126"><a name="mrs_01_2128__en-us_topic_0264269418_li17980589104436"></a><a name="en-us_topic_0264269418_li17980589104436"></a>If this requirement is not met, modify the ECS security group or configure the inbound and outbound rules of the ECS security group to allow the ECS security group to be accessed by all security groups of MRS cluster nodes.</p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li55858868171944">To enable users to log in to a Linux ECS using a password (SSH), see <i><cite id="mrs_01_2128__en-us_topic_0264269418_cite2081188264"><strong id="mrs_01_2128__en-us_topic_0264269418_b1507203120617">Instances</strong> &gt; <strong id="mrs_01_2128__en-us_topic_0264269418_b1140413372062">Logging In to a Linux ECS</strong> &gt; <strong id="mrs_01_2128__en-us_topic_0264269418_b964534214616">Login Using an SSH Password</strong> in the <em id="mrs_01_2128__en-us_topic_0264269418_i9843246562">Elastic Cloud Server User Guide</em></cite></i>.</li></ul>
</div>
<div class="section" id="mrs_01_2128__en-us_topic_0264269418_section9804155211019"><h4 class="sectiontitle">Installing a Client on the Core Node</h4><ol id="mrs_01_2128__en-us_topic_0264269418_ol5455012317153"><li id="mrs_01_2128__en-us_topic_0264269418_li5834174282119">Log in to MRS Manager and choose <strong id="mrs_01_2128__en-us_topic_0264269418_b168412916136">Services</strong> &gt; <strong id="mrs_01_2128__en-us_topic_0264269418_b159211715141314">Download Client</strong> to download the client installation package to the active management node.<div class="note" id="mrs_01_2128__en-us_topic_0264269418_note1971123710424"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2128__en-us_topic_0264269418_p6721237164215">If only the client configuration file needs to be updated, see method 2 in <a href="mrs_01_2130.html">Updating a Client (Versions Earlier Than 3.x)</a>.</p>
</div></div>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li6093567015358">Use the IP address to search for the active management node, and log in to the active management node using VNC.</li><li id="mrs_01_2128__en-us_topic_0264269418_li37340373135822">Log in to the active management node, and run the following command to switch the user:<p id="mrs_01_2128__en-us_topic_0264269418_p30478842135832"><a name="mrs_01_2128__en-us_topic_0264269418_li37340373135822"></a><a name="en-us_topic_0264269418_li37340373135822"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b45672692134539">sudo su - omm</strong></p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li58997717153813">On the MRS management console, view the IP address on the <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname148405098495450"><b>Nodes</b></span> tab page of the specified cluster.<p id="mrs_01_2128__en-us_topic_0264269418_p39948878153857">Record the IP address of the Core node where the client is to be used.</p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li3307453017244">On the active management node, run the following command to copy the client installation package to the Core node:<p id="mrs_01_2128__en-us_topic_0264269418_p373044961739"><a name="mrs_01_2128__en-us_topic_0264269418_li3307453017244"></a><a name="en-us_topic_0264269418_li3307453017244"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b35820121395450">scp -p /tmp/MRS-client/MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b138152398395450">_Services_Client.tar</strong> <em id="mrs_01_2128__en-us_topic_0264269418_i205096583495450">IP address of the Core node</em><strong id="mrs_01_2128__en-us_topic_0264269418_b93984621095450">:/opt/client</strong></p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li5053215154042">Log in to the Core node as user <strong id="mrs_01_2128__en-us_topic_0264269418_b96762893695450">root</strong>.<p id="mrs_01_2128__en-us_topic_0264269418_p14110049955">For details, see <a href="https://docs.otc.t-systems.com/usermanual/ecs/en-us_topic_0017955380.html" target="_blank" rel="noopener noreferrer">Login Using an SSH Key</a>.</p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li7483220165311">Run the following commands to install the client:<p id="mrs_01_2128__en-us_topic_0264269418_p1559044984917"><a name="mrs_01_2128__en-us_topic_0264269418_li7483220165311"></a><a name="en-us_topic_0264269418_li7483220165311"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b155091255503">cd /opt/client</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p1664215367560"><strong id="mrs_01_2128__en-us_topic_0264269418_b17245433191314">tar -xvf</strong> <strong id="mrs_01_2128__en-us_topic_0264269418_b32192053105616">MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b72191753105613">_Services_Client.tar</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p186421236155612"><strong id="mrs_01_2128__en-us_topic_0264269418_b1664211363562">tar -xvf MRS<strong id="mrs_01_2128__en-us_topic_0264269418_b364253614561">_</strong>Services_ClientConfig.tar</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p7200134445715"><strong id="mrs_01_2128__en-us_topic_0264269418_b320064410574">cd /opt/client/MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b520019449574">_Services_ClientConfig</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p64818911165334"><strong id="mrs_01_2128__en-us_topic_0264269418_b2595433142311">./install.sh</strong> <em id="mrs_01_2128__en-us_topic_0264269418_i561185416305">Client installation directory</em></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p3544744116550">For example, run the following command:</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p1612301216558"><strong id="mrs_01_2128__en-us_topic_0264269418_b66926662134534">./install.sh /opt/client</strong></p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li2482698517958">For details about how to use the client, see <a href="#mrs_01_2128__en-us_topic_0264269418_section8796733802">Using an MRS Client</a>.</li></ol>
</div>
<div class="section" id="mrs_01_2128__en-us_topic_0264269418_section8796733802"><a name="mrs_01_2128__en-us_topic_0264269418_section8796733802"></a><a name="en-us_topic_0264269418_section8796733802"></a><h4 class="sectiontitle">Using an MRS Client</h4><ol id="mrs_01_2128__en-us_topic_0264269418_ol406463517727"><li id="mrs_01_2128__en-us_topic_0264269418_li5310293617727">On the node where the client is installed, run the <strong id="mrs_01_2128__en-us_topic_0264269418_b831216161814">sudo su - omm</strong> command to switch the user. Run the following command to go to the client directory:<p id="mrs_01_2128__en-us_topic_0264269418_p1458176517659"><strong id="mrs_01_2128__en-us_topic_0264269418_b1518921775">cd /opt/client</strong></p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li6464792217731">Run the following command to configure environment variables:<p id="mrs_01_2128__en-us_topic_0264269418_p4329329317720"><a name="mrs_01_2128__en-us_topic_0264269418_li6464792217731"></a><a name="en-us_topic_0264269418_li6464792217731"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b4463590517724">source bigdata_env</strong></p>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li161086496511">If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, skip this step.<p id="mrs_01_2128__en-us_topic_0264269418_p410854918513"><a name="mrs_01_2128__en-us_topic_0264269418_li161086496511"></a><a name="en-us_topic_0264269418_li161086496511"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b129896457095450">kinit</strong> <em id="mrs_01_2128__en-us_topic_0264269418_i13939735295450">MRS cluster user</em></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p1410814910514">Example: <strong id="mrs_01_2128__en-us_topic_0264269418_b1810884915516">kinit admin</strong></p>
<div class="note" id="mrs_01_2128__en-us_topic_0264269418_note9287432201644"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2128__en-us_topic_0264269418_p63123885201646">User <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname56874839395450"><b>admin</b></span> is created by default for MRS clusters with Kerberos authentication enabled and is used for administrators to maintain the clusters.</p>
</div></div>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li6700401317745">Run the client command of a component directly.<p id="mrs_01_2128__en-us_topic_0264269418_p71420617745"><a name="mrs_01_2128__en-us_topic_0264269418_li6700401317745"></a><a name="en-us_topic_0264269418_li6700401317745"></a>For example, run the <strong id="mrs_01_2128__en-us_topic_0264269418_b5605428616591">hdfs dfs -ls /</strong> command to view files in the HDFS root directory.</p>
</li></ol>
</div>
<div class="section" id="mrs_01_2128__en-us_topic_0264269418_section6090605618256"><h4 class="sectiontitle">Installing a Client on a Node Outside the Cluster</h4><ol id="mrs_01_2128__en-us_topic_0264269418_ol210706218310"><li id="mrs_01_2128__en-us_topic_0264269418_li30039791132150"><span>Create an ECS that meets the requirements in the prerequisites.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li1148114223118"><a name="mrs_01_2128__en-us_topic_0264269418_li1148114223118"></a><a name="en-us_topic_0264269418_li1148114223118"></a><span>Log in to MRS Manager. For details, see <a href="mrs_01_0102.html">Accessing MRS Manager (Versions Earlier Than MRS 3.x)</a>. Then, choose <strong id="mrs_01_2128__en-us_topic_0264269418_b159132782895450">Services</strong>.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li25485761174241"><span>Click <span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol1231315226512"><b>Download Client</b></span>.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li3194586818528"><span>In <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname27735901102234"><b>Client Type</b></span>, select <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue6438789818613"><b>All client files</b></span>.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li16029034161539"><span>In <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname181534506243"><b>Download To</b></span>, select <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue17153125010246"><b>Remote host</b></span>.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li24260068101924"><a name="mrs_01_2128__en-us_topic_0264269418_li24260068101924"></a><a name="en-us_topic_0264269418_li24260068101924"></a><span>Set <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname169882152213"><b>Host IP Address</b></span> to the IP address of the ECS, <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname110502132218"><b>Host Port</b></span> to <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue131051426220"><b>22</b></span>, and <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname17105825227"><b>Save Path</b></span> to <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue8106426228"><b>/home/linux</b></span>.</span><p><ul id="mrs_01_2128__en-us_topic_0264269418_ul24273204141717"><li id="mrs_01_2128__en-us_topic_0264269418_li57918067141717">If the default port <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue61609001141717"><b>22</b></span> for logging in to an ECS using SSH has been changed, set <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname17610103141717"><b>Host Port</b></span> to the new port.</li><li id="mrs_01_2128__en-us_topic_0264269418_li64352513141719"><span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname32866939141719"><b>Save Path</b></span> contains a maximum of 256 characters.</li></ul>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li15099144102010"><span>Set <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname17522131318251"><b>Login User</b></span> to <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname152851322515"><b>root</b></span>.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p61728455102013">If other users are used, ensure that the users have read, write, and execute permission on the save path.</p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li135088406264"><span>In <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname14830205312333"><b>SSH Private Key</b></span>, select and upload the key file used for creating cluster B.</span></li><li id="mrs_01_2128__en-us_topic_0264269418_li27726015162252"><span>Click <span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol5926483424"><b>OK</b></span> to generate a client file.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p13398261102048">If the following information is displayed, the client package is saved. Click <span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol6229558610210"><b>Close</b></span>. Obtain the client file from the save path on the remote host that is set when the client is downloaded.</p>
<pre class="codeblock" id="mrs_01_2128__en-us_topic_0264269418_codeblock47301255340">Client files downloaded to the remote host successfully.</pre>
<p id="mrs_01_2128__en-us_topic_0264269418_p6498105435314">If the following information is displayed, check the username, password, and security group configurations of the remote host. Ensure that the username and password are correct and an inbound rule of the SSH (22) port has been added to the security group of the remote host. And then, go to <a href="#mrs_01_2128__en-us_topic_0264269418_li1148114223118">2</a> to download the client again.</p>
<pre class="codeblock" id="mrs_01_2128__en-us_topic_0264269418_codeblock335611138543">Failed to connect to the server. Please check the network connection or parameter settings.</pre>
<div class="note" id="mrs_01_2128__en-us_topic_0264269418_note7423930133115"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2128__en-us_topic_0264269418_p1742473011313">Generating a client will occupy a large number of disk I/Os. You are advised not to download a client when the cluster is being installed, started, and patched, or in other unstable states.</p>
</div></div>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li14743004162655"><span>Log in to the ECS using VNC. For details, see <span class="menucascade" id="mrs_01_2128__en-us_topic_0264269418_menucascade77012248711"><b><span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol770192411710">Instance</span></b> &gt; <b><span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol670111241771">Logging In to a Linux</span></b> &gt; <b><span class="uicontrol" id="mrs_01_2128__en-us_topic_0264269418_uicontrol27011242714">Logging In to a Linux</span></b></span> in the <em id="mrs_01_2128__en-us_topic_0264269418_i371818166910">Elastic Cloud Server</em> <i><cite id="mrs_01_2128__en-us_topic_0264269418_cite671816161499">User Guide</cite></i></span><p><p id="mrs_01_2128__en-us_topic_0264269418_p924516130597">Log in to the ECS. For details, see <a href="https://docs.otc.t-systems.com/usermanual/ecs/en-us_topic_0017955380.html" target="_blank" rel="noopener noreferrer">Login Using an SSH Key</a>. Set the ECS password and log in to the ECS in VNC mode.</p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li4775145513575"><span>Perform NTP time synchronization to synchronize the time of nodes outside the cluster with the time of the MRS cluster.</span><p><ol type="a" id="mrs_01_2128__en-us_topic_0264269418_ol193951422145810"><li id="mrs_01_2128__en-us_topic_0264269418_li35979472009">Check whether the NTP service is installed. If it is not installed, run the <strong id="mrs_01_2128__en-us_topic_0264269418_b94247585215">yum install ntp -y</strong> command to install it.</li><li id="mrs_01_2128__en-us_topic_0264269418_li46251218311">Run the <strong id="mrs_01_2128__en-us_topic_0264269418_b13682020314">vim /etc/ntp.conf</strong> command to edit the NTP client configuration file, add the IP address of the Master node in the MRS cluster, and comment out the IP addresses of other servers.<pre class="screen" id="mrs_01_2128__en-us_topic_0264269418_screen115991769270">server <em id="mrs_01_2128__en-us_topic_0264269418_i1246044402714">master1_ip</em> prefer
server <em id="mrs_01_2128__en-us_topic_0264269418_i194410516271">master2_ip</em> </pre>
<div class="fignone" id="mrs_01_2128__fig2032510291578"><span class="figcap"><b>Figure 1 </b>Adding the Master node IP addresses</span><br><span><img id="mrs_01_2128__image1647342015574" src="en-us_image_0000001388250740.png"></span></div>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li03711129101013">Run the <strong id="mrs_01_2128__en-us_topic_0264269418_b1117211137316">service ntpd stop</strong> command to stop the NTP service.</li><li id="mrs_01_2128__en-us_topic_0264269418_li52801730202416">Run the following command to manually synchronize the time:<p id="mrs_01_2128__en-us_topic_0264269418_p1349612315246"><a name="mrs_01_2128__en-us_topic_0264269418_li52801730202416"></a><a name="en-us_topic_0264269418_li52801730202416"></a><strong id="mrs_01_2128__en-us_topic_0264269418_b5991367279">/usr/sbin/ntpdate </strong><em id="mrs_01_2128__en-us_topic_0264269418_i16679123612279">192.168.10.8</em></p>
<div class="note" id="mrs_01_2128__en-us_topic_0264269418_note733331515278"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2128__en-us_topic_0264269418_p1333131512276"><strong id="mrs_01_2128__en-us_topic_0264269418_b769916459405">192.168.10.8</strong> indicates the IP address of the active Master node.</p>
</div></div>
</li><li id="mrs_01_2128__en-us_topic_0264269418_li1626616223117">Run the <strong id="mrs_01_2128__en-us_topic_0264269418_b2030016248317">service ntpd start</strong> or <strong id="mrs_01_2128__en-us_topic_0264269418_b133000249317">systemctl restart ntpd</strong> command to start the NTP service.</li><li id="mrs_01_2128__en-us_topic_0264269418_li103951822155811">Run the <strong id="mrs_01_2128__en-us_topic_0264269418_b548719267313">ntpstat</strong> command to check the time synchronization result:</li></ol>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li3635762195625"><span>On the ECS, switch to user <strong id="mrs_01_2128__en-us_topic_0264269418_b3287143611199">root</strong> and copy the installation package in <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname15826165216216"><b>Save Path</b></span> in <a href="#mrs_01_2128__en-us_topic_0264269418_li24260068101924">6</a> to the <span class="filepath" id="mrs_01_2128__en-us_topic_0264269418_filepath18421134781917"><b>/opt</b></span> directory. For example, if <span class="parmname" id="mrs_01_2128__en-us_topic_0264269418_parmname141551419223"><b>Save Path</b></span> is set to <span class="parmvalue" id="mrs_01_2128__en-us_topic_0264269418_parmvalue171181838289"><b>/home/linux</b></span>, run the following commands:</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p48215431132834"><strong id="mrs_01_2128__en-us_topic_0264269418_b45350733132836">sudo su - root</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p383515891068"><strong id="mrs_01_2128__en-us_topic_0264269418_b60207094132016">cp /home/linux/MRS_Services_Client.tar /opt</strong></p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li1649774418830"><span>Run the following command in the <span class="filepath" id="mrs_01_2128__en-us_topic_0264269418_filepath55449510211457"><b>/opt</b></span> directory to decompress the package and obtain the verification file and the configuration package of the client:</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p5556163418125"><strong id="mrs_01_2128__en-us_topic_0264269418_b3999988132850">tar -xvf MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b686791718137">_Services_Client.tar</strong></p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li664034951893"><span>Run the following command to verify the configuration file package of the client:</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p54709019181312"><strong id="mrs_01_2128__en-us_topic_0264269418_b66867090132852">sha256sum -c MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b5690940181436">_Services_ClientConfig.tar.sha256</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p3263777181412">The command output is as follows:</p>
<pre class="screen" id="mrs_01_2128__en-us_topic_0264269418_screen24131131181456">MRS_Services_ClientConfig.tar: OK</pre>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li4683734818919"><span>Run the following command to decompress <span class="filepath" id="mrs_01_2128__en-us_topic_0264269418_filepath1739724880114532"><b>MRS_Services_ClientConfig.tar</b></span>:</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p36596134181537"><strong id="mrs_01_2128__en-us_topic_0264269418_b3722216132857">tar -xvf MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b9824444181613">_Services_ClientConfig.tar</strong></p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li4241933918937"><span>Run the following command to install the client to a new directory, for example, <span class="filepath" id="mrs_01_2128__en-us_topic_0264269418_filepath82191038205710"><b>/opt/Bigdata/client</b></span>. A directory is automatically generated during the client installation.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p7912192181643"><strong id="mrs_01_2128__en-us_topic_0264269418_b8750476132859">sh /opt/MRS</strong><strong id="mrs_01_2128__en-us_topic_0264269418_b39103504181849">_Services_ClientConfig/install.sh /opt/Bigdata/client</strong></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p37392995181857">If the following information is displayed, the client has been successfully installed:</p>
<pre class="screen" id="mrs_01_2128__en-us_topic_0264269418_screen654652418195">Components client installation is complete.</pre>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li4993958318107"><span>Check whether the IP address of the ECS node is connected to the IP address of the cluster Master node.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p41924303132929">For example, run the following command: <strong id="mrs_01_2128__en-us_topic_0264269418_b11051132134150">ping</strong><em id="mrs_01_2128__en-us_topic_0264269418_i22726498134150"><strong id="mrs_01_2128__en-us_topic_0264269418_b32351328134150"> </strong>Master node IP address</em>.</p>
<ul id="mrs_01_2128__en-us_topic_0264269418_ul4680306518107"><li id="mrs_01_2128__en-us_topic_0264269418_li1857440218107">If yes, go to <a href="#mrs_01_2128__en-us_topic_0264269418_li6406429718107">18</a>.</li><li id="mrs_01_2128__en-us_topic_0264269418_li2813156518107">If no, check whether the VPC and security group are correct and whether the ECS and the MRS cluster are in the same VPC and security group, and go to <a href="#mrs_01_2128__en-us_topic_0264269418_li6406429718107">18</a>.</li></ul>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li6406429718107"><a name="mrs_01_2128__en-us_topic_0264269418_li6406429718107"></a><a name="en-us_topic_0264269418_li6406429718107"></a><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p3970776518107"><strong id="mrs_01_2128__en-us_topic_0264269418_b54117066175450">source /opt/Bigdata/client/bigdata_env</strong></p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li59218459111521"><span>If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, skip this step.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p3903911193255"><strong id="mrs_01_2128__en-us_topic_0264269418_b2068742935012">kinit</strong> <em id="mrs_01_2128__en-us_topic_0264269418_i12688429145013">MRS cluster user</em></p>
<p id="mrs_01_2128__en-us_topic_0264269418_p23308555145027">Example: <strong id="mrs_01_2128__en-us_topic_0264269418_b21788660145616">kinit admin</strong></p>
</p></li><li id="mrs_01_2128__en-us_topic_0264269418_li6221236418107"><span>Run the client command of a component.</span><p><p id="mrs_01_2128__en-us_topic_0264269418_p7053392132957">For example, run the following command to query the HDFS directory:</p>
<p id="mrs_01_2128__en-us_topic_0264269418_p1719355913307"><strong id="mrs_01_2128__en-us_topic_0264269418_b17667152133012">hdfs dfs -ls /</strong></p>
</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>