forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
83 lines
16 KiB
HTML
83 lines
16 KiB
HTML
<a name="mrs_01_0800"></a><a name="mrs_01_0800"></a>
|
|
|
|
<h1 class="topictitle1">Using an MRS Client on Nodes Outside a MRS Cluster</h1>
|
|
<div id="body1600327428155"><div class="section" id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_section47062638171526"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p34591823171548">After a client is installed, you can use the client on a node outside an MRS cluster.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_section3219221104310"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_ul26645308104434"><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li37425717104434">A Linux ECS has been prepared. For details about the OS and its version of the ECS, see <a href="#mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_table40818788104630">Table 1</a>.
|
|
<div class="tablenoborder"><a name="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_table40818788104630"></a><a name="en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_table40818788104630"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_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_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row38578049104630"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.1.2.2.4.1.1"><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p147543306359">CPU Architecture</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.1.2.2.4.1.2"><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p37814246104630">Operating System (OS)</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.1.2.2.4.1.3"><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p43055100104630">Supported Version</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row3952911204620"><td class="cellrowborder" rowspan="4" valign="top" width="15%" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p067995812372">x86 computing</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p1341716202466">Euler</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.1.2.2.4.1.3 "><p id="mrs_01_0800__en-us_topic_0000001237758831_p782123814365">Euler OS 2.5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row64911082104630"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p23306329104630">SLES</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_p16974173323612">SUSE Linux Enterprise Server 12 SP4 (SUSE 12.4)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row60240262104630"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p47623054104630">Red Hat</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_p970920248360">Red Hat-7.5-x86_64 (Red Hat 7.5)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row30103971104630"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p22502558104630">CentOS</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_p12811549123617">CentOS-7.6</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row176952056184517"><td class="cellrowborder" rowspan="2" valign="top" width="15%" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p15246194518374">Kunpeng computing (Arm)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p126771821194219">Euler</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.1.2.2.4.1.3 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p1329205172516">Euler OS 2.8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_row7244555103511"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.1 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p11246555203516">CentOS</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.1.2.2.4.1.2 "><p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p776320021018">CentOS-7.6</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_p1282531142624">In addition, sufficient disk space is allocated for the ECS, for example, <span class="parmvalue" id="mrs_01_0800__en-us_topic_0000001237758831_parmvalue2728181214369"><b>40GB</b></span>.</p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li7335267104528">The ECS and the MRS cluster are in the same VPC.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li17980589104436">The security group of the ECS must be the same as that of the Master node in an MRS cluster.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li9399184211230">The NTP service has been installed on the ECS OS and is running properly.<p id="mrs_01_0800__en-us_topic_0000001237758831_p163361134122717"><a name="mrs_01_0800__en-us_topic_0000001237758831_li9399184211230"></a><a name="en-us_topic_0000001237758831_li9399184211230"></a>If the NTP service is not installed, run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b175091431195212">yum install ntp -y</strong> command to install it when the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b10150138145220">yum</strong> source is configured.</p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li55858868171944">A user can log in to the Linux ECS using the password (in SSH mode).</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_section6090605618256"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_ol210706218310"><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li30039791132150"><span>Create an ECS that meets the requirements.</span></li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_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_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_ol193951422145810"><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li46251218311">Run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b1594310053912">vi /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_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_screen115991769270">server <em id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_i1246044402714">master1_ip</em> profer
|
|
server <em id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_i194410516271">master2_ip</em> </pre>
|
|
<div class="fignone" id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_fig74146519424"><span class="figcap"><b>Figure 1 </b>Adding the Master node IP addresses</span><br><span><img id="mrs_01_0800__image494784418419" src="en-us_image_0000001389636106.png"></span></div>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li03711129101013">Run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b16296114123912">service ntpd stop</strong> command to stop the NTP service.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li14694201713711">Run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b1118518159393">/usr/sbin/ntpdate </strong><em id="mrs_01_0800__en-us_topic_0000001237758831_i518513157397">IP address of the active Master node</em> command to manually synchronize the time.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li1626616223117">Run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b95311633914">service ntpd start</strong> or <strong id="mrs_01_0800__en-us_topic_0000001237758831_b45471623918">systemctl restart ntpd</strong> command to start the NTP service.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li103951822155811">Run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b9310177396">ntpstat</strong> command to check the time synchronization result:</li></ol>
|
|
</p></li><li id="mrs_01_0800__en-us_topic_0000001237758831_en-us_topic_0270713152_en-us_topic_0264269418_li3635762195625"><span>Perform the following steps to download the cluster client software package from FusionInsight Manager, copy the package to the ECS node, and install the client:</span><p><ol type="a" id="mrs_01_0800__en-us_topic_0000001237758831_ol1744153134310"><li id="mrs_01_0800__en-us_topic_0000001237758831_li2047215196234">Log in to FusionInsight Manager and download the cluster client to the specified directory on the active management node.</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li04726194231">Log in to the active management node as user <strong id="mrs_01_0800__en-us_topic_0000001237758831_b2759156144910">root</strong>.<p id="mrs_01_0800__en-us_topic_0000001237758831_p8472619102312"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b11472131912316">sudo su - omm</strong></p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li74721419122310">Run the following command to copy the client to the node where the client is to be installed:<p id="mrs_01_0800__en-us_topic_0000001237758831_p104721019182319"><a name="mrs_01_0800__en-us_topic_0000001237758831_li74721419122310"></a><a name="en-us_topic_0000001237758831_li74721419122310"></a><strong id="mrs_01_0800__en-us_topic_0000001237758831_b8365105910498">scp -p /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_Client.tar</strong><em id="mrs_01_0800__en-us_topic_0000001237758831_i173667598497"> IP address of the node where the client is to be installed</em><strong id="mrs_01_0800__en-us_topic_0000001237758831_b15472161913238">:/tmp</strong></p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li247391922314">Log in to a node on which the client is to be installed as the client user.<p id="mrs_01_0800__en-us_topic_0000001237758831_p1762065714263"><a name="mrs_01_0800__en-us_topic_0000001237758831_li247391922314"></a><a name="en-us_topic_0000001237758831_li247391922314"></a>Run the following command to install the client. If you do not have the file operation permission, change the file permission as user <strong id="mrs_01_0800__en-us_topic_0000001237758831_b1974262015509">root</strong>.</p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p9473171952319"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b34731119202310">cd /tmp</strong></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p13761454192720"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b1445265272714">tar -xvf </strong><strong id="mrs_01_0800__en-us_topic_0000001237758831_b6452052122710">FusionInsight_Cluster_1_Services_Client.tar</strong></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p63409105285"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b1719885284">tar -xvf </strong><strong id="mrs_01_0800__en-us_topic_0000001237758831_b1471917852811">FusionInsight_Cluster_1_Services_ClientConfig.tar</strong></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p1831131182819"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b174410298289">cd /tmp/FusionInsight</strong><strong id="mrs_01_0800__en-us_topic_0000001237758831_b244729172810">_Cluster_1_Services_ClientConfig</strong></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p172671740142820"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b199816395286">./install.sh /opt/mrsclient</strong></p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li10473191919234">Run the following commands to switch to the client directory and configure environment variables:<p id="mrs_01_0800__en-us_topic_0000001237758831_p174736199233"><a name="mrs_01_0800__en-us_topic_0000001237758831_li10473191919234"></a><a name="en-us_topic_0000001237758831_li10473191919234"></a><strong id="mrs_01_0800__en-us_topic_0000001237758831_b1747361952311">cd /opt/mrsclient</strong></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p1547391911235"><strong id="mrs_01_0800__en-us_topic_0000001237758831_b10473111902312">source bigdata_env</strong></p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li547351914231">If the 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_0800__en-us_topic_0000001237758831_p147318190238"><a name="mrs_01_0800__en-us_topic_0000001237758831_li547351914231"></a><a name="en-us_topic_0000001237758831_li547351914231"></a><strong id="mrs_01_0800__en-us_topic_0000001237758831_b24691626105019">kinit</strong> <em id="mrs_01_0800__en-us_topic_0000001237758831_i3469122685014">MRS cluster user</em></p>
|
|
<p id="mrs_01_0800__en-us_topic_0000001237758831_p847391917238">Example: <strong id="mrs_01_0800__en-us_topic_0000001237758831_b298262755014">kinit admin</strong></p>
|
|
</li><li id="mrs_01_0800__en-us_topic_0000001237758831_li247381916232">Run the client command of a component directly.<p id="mrs_01_0800__en-us_topic_0000001237758831_p1247431910238"><a name="mrs_01_0800__en-us_topic_0000001237758831_li247381916232"></a><a name="en-us_topic_0000001237758831_li247381916232"></a>For example, run the <strong id="mrs_01_0800__en-us_topic_0000001237758831_b1449816315501">hdfs dfs -ls /</strong> command to view files in the HDFS root directory.</p>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0787.html">Using an MRS Client</a></div>
|
|
</div>
|
|
</div>
|
|
|