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

26 lines
4.2 KiB
HTML

<a name="mrs_01_2065"></a><a name="mrs_01_2065"></a>
<h1 class="topictitle1">Using the Storm Client</h1>
<div id="body1595918892486"><div class="section" id="mrs_01_2065__scc6744d7a5a6433f901fa254a6fd8754"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_2065__a8e585bb73a74445ea0e6da54bfdfe7e8">This section describes how to use the Storm client in an O&amp;M scenario or service scenario. </p>
</div>
<div class="section" id="mrs_01_2065__s97a1fb645a964d3bada59b808f6cab48"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_2065__ue64417eed22947b4b9c3da90d5b9f302"><li id="mrs_01_2065__l4f6f003302e24ef8bf55bb20afdf8563">You have installed the client. For example, the installation directory is <strong id="mrs_01_2065__b840051073210">/opt/<strong id="mrs_01_2065__b12400111053213">hadoopclient</strong></strong>.</li><li id="mrs_01_2065__la8a352e20c414015a0e60f8023ecc0a5">Service component users are created by the administrator as required. In security mode, machine-machine users have downloaded the keytab file. A human-machine user must change the password upon the first login. (Not involved in normal mode)</li></ul>
</div>
<div class="section" id="mrs_01_2065__scd63f70223e14394b9859e5b66d6d978"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_2065__o2df9942ad0534b7d8cafeeb11cc6206a"><li id="mrs_01_2065__li643853813114"><span>Prepare the client based on service requirements. Log in to the node where the client is installed.</span><p><p id="mrs_01_2065__en-us_topic_0264265600_en-us_topic_0264265570_p86481341214"><span id="mrs_01_2065__en-us_topic_0264265600_en-us_topic_0264265570_en-us_topic_0250273528_ph15108105535420">Log in to the node where the client is installed.</span></p>
</p></li><li id="mrs_01_2065__l15ccdc20458144029e38bd2205f43e33"><span>Run the following command to go to the client installation directory:</span><p><p id="mrs_01_2065__ad7302d93df21428fa879e4b18d330c10"><strong id="mrs_01_2065__a6cb34d9bf7ae47ca858afe7899bc458f">cd /opt/hadoopclient</strong></p>
</p></li><li id="mrs_01_2065__l0dbf1920decf42e0beb4414bc2739890"><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_2065__afe7acac195034938a523ae67dbf49a88"><strong id="mrs_01_2065__acf40e590d6db47dcb5ecbaa0ea59e9f6">source bigdata_env</strong></p>
</p></li><li id="mrs_01_2065__li1557613391425"><span>If multiple Storm instances are installed, run the following command to load the environment variables of a specific instance when running the Storm command to submit the topology. Otherwise, skip this step. The following command uses the instance Storm-2 as an example.</span><p><p id="mrs_01_2065__p1497814112069"><strong id="mrs_01_2065__b81002491560">source Storm-2/</strong><strong id="mrs_01_2065__b399113614613">component_env</strong></p>
</p></li><li id="mrs_01_2065__l05cc4c7a5afa4b0fbcfbe121ccf44aaf"><span>Run the following command to perform user authentication (skip this step in normal mode):</span><p><p id="mrs_01_2065__a4b552833a27b496f9ff5ed4b75e6f0f7"><strong id="mrs_01_2065__ad32170dee14a4292b3e30ad217af5a0c">kinit</strong> <em id="mrs_01_2065__a8cf60b3eb570431bb4b4579c53a0d608">Component service user</em></p>
</p></li><li id="mrs_01_2065__l05d992f48c0d4cc8a300733782d19c7d"><span>Run the following command to perform operations on the client:</span><p><div class="p" id="mrs_01_2065__a7d71f93e28e54dcdbf955c56944ebebf">For example, run the following command:<ul id="mrs_01_2065__u418093d399c144ab9b725a658fe41c17"><li id="mrs_01_2065__lc1e4eee55d7b4670957a6a8ab9347790"><strong id="mrs_01_2065__a15cff41edee743619c57cb4ff705c393">cql</strong></li><li id="mrs_01_2065__l75cccfe1851b4ab58d361eb3061af895"><strong id="mrs_01_2065__a07d3c06bb8f54ae3a5d080b63fbdbbfc">storm</strong></li></ul>
<div class="note" id="mrs_01_2065__note131625113912"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2065__p191685113914">A Storm client cannot be connected to secure and non-secure ZooKeepers at the same time.</p>
</div></div>
</div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0380.html">Using Storm</a></div>
</div>
</div>