Yang, Tong 3f5759eed2 MRS comp-lts 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>
2023-01-19 17:08:45 +00:00

22 lines
4.1 KiB
HTML

<a name="mrs_01_0788"></a><a name="mrs_01_0788"></a>
<h1 class="topictitle1">Using an MRS Client on Nodes Inside a MRS Cluster</h1>
<div id="body1600327428154"><div class="section" id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_section65278330165558"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p931162016561">Before using the client, you need to install the client. For example, the installation directory is <strong id="mrs_01_0788__en-us_topic_0000001237598945_b241885525016">/opt/hadoopclient</strong>.</p>
</div>
<div class="section" id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_section51771356165739"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0788__en-us_topic_0000001237598945_ol171261835142910"><li id="mrs_01_0788__en-us_topic_0000001237598945_li1962110368297"><span>Log in to the Master node in the cluster as user <strong id="mrs_01_0788__en-us_topic_0000001237598945_b1912916315470">root</strong>.</span></li><li id="mrs_01_0788__en-us_topic_0000001237598945_li11126103518298"><span>Run the <strong id="mrs_01_0788__en-us_topic_0000001237598945_b1632135203015">sudo su - </strong><strong id="mrs_01_0788__en-us_topic_0000001237598945_b13884177585">omm</strong> command to switch the current user.</span></li><li id="mrs_01_0788__en-us_topic_0000001237598945_li1512719358298"><span>Run the following command to go to the client directory:</span><p><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p1458176517659"><strong id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_b1518921775">cd /opt/hadoopclient</strong></p>
</p></li><li id="mrs_01_0788__en-us_topic_0000001237598945_li212793542920"><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p4329329317720"><strong id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_b4463590517724">source bigdata_env</strong></p>
</p></li><li id="mrs_01_0788__en-us_topic_0000001237598945_li1312733510299"><span>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:</span><p><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p3903911193255"><strong id="mrs_01_0788__en-us_topic_0000001237598945_b3149145117309">kinit</strong> <em id="mrs_01_0788__en-us_topic_0000001237598945_i12154195117300">MRS cluster user</em></p>
<p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p23308555145027">Example: <strong id="mrs_01_0788__en-us_topic_0000001237598945_b148215530301">kinit admin</strong></p>
<div class="note" id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_note9287432201644"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p63123885201646">User <span class="parmname" id="mrs_01_0788__en-us_topic_0000001237598945_parmname1056145413304"><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>
</p></li><li id="mrs_01_0788__en-us_topic_0000001237598945_li7127173532911"><span>Run the client command of a component directly.</span><p><p id="mrs_01_0788__en-us_topic_0000001237598945_en-us_topic_0270713151_en-us_topic_0264269828_p71420617745">For example, run the <strong id="mrs_01_0788__en-us_topic_0000001237598945_b17345105883016">hdfs dfs -ls /</strong> command to view files in the HDFS root directory.</p>
</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>