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

24 lines
3.5 KiB
HTML

<a name="mrs_01_1045"></a><a name="mrs_01_1045"></a>
<h1 class="topictitle1">Using Storm from Scratch</h1>
<div id="body1590118474320"><p id="mrs_01_1045__p8060118">You can submit and delete Storm topologies on the MRS cluster client.</p>
<div class="section" id="mrs_01_1045__section860833124711"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_1045__p522317360472">The MRS cluster client has been installed, for example, in the <strong id="mrs_01_1045__b13704731314">/opt/hadoopclient</strong> directory. The client directory in the following operations is only an example. Change it based on the actual installation directory onsite.</p>
</div>
<div class="section" id="mrs_01_1045__section754916241562"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1045__o1a1694aafb174694a4a0e67712a47f76"><li id="mrs_01_1045__l6bafa992ef354ebc8c1e16387160ae24"><span>Prepare the client based on service requirements. Log in to the node where the client is installed.</span></li><li id="mrs_01_1045__ldc59b65d35af40029b69d717590c5ee1"><span>Run the following command to switch to the client directory, for example, <strong id="mrs_01_1045__b1231201919312">/opt/hadoopclient</strong>:</span><p><p id="mrs_01_1045__a5c7abf7d609e49daa21d689801c7665d"><strong id="mrs_01_1045__en-us_topic_0057061151_b539462609946">cd /opt/hadoopclient</strong></p>
</p></li><li id="mrs_01_1045__lb12ce87c6e7946bb9a848a19a34c9e35"><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_1045__af0f6bc7c36064c379eed07a5509d2ba2"><strong id="mrs_01_1045__a867f14eb42d44d819707ead5ac2ca425">source bigdata_env</strong></p>
</p></li><li id="mrs_01_1045__lb19afed2bbbf4a3d81e9242146b0ec02"><span>For clusters with Kerberos authentication enabled, run the following command to authenticate the user. For clusters with Kerberos authentication disabled, skip this step.</span><p><p id="mrs_01_1045__ae2143305619c412a820dbefd67e607b3"><strong id="mrs_01_1045__b13535253102416">kinit</strong> <em id="mrs_01_1045__i1540195310244">Storm user</em></p>
</p></li><li id="mrs_01_1045__li173182463219"><span>Run the following command to submit the Storm topology:</span><p><p id="mrs_01_1045__p19733132411320"><strong id="mrs_01_1045__b2336314182610">storm jar</strong> <em id="mrs_01_1045__i87366245328">Path of the topology package Class name of the topology Main method Topology name</em></p>
<p id="mrs_01_1045__p167476249328">If the following information is displayed, the topology is submitted successfully.</p>
<pre class="screen" id="mrs_01_1045__screen174816248323">Finished submitting topology: topo1</pre>
</p></li><li id="mrs_01_1045__lbe3cdaf67f5b4cf18419fbbdeb422302"><span>Run the following command to query Storm topologies. For clusters with Kerberos authentication enabled, only users in the <span class="parmname" id="mrs_01_1045__parmname165721689144120"><b>stormadmin</b></span> or <span class="parmname" id="mrs_01_1045__parmname2066340759144120"><b>storm</b></span> group can query all topologies.</span><p><p id="mrs_01_1045__adbde1f1e20f7494abb88a485fead6155"><strong id="mrs_01_1045__a7bd189f7b6ae4336b6718bc54889aecb">storm list</strong></p>
</p></li><li id="mrs_01_1045__li2848168145910"><span>Run the following command to delete a Storm topology.</span><p><p id="mrs_01_1045__p66556053163133"><strong id="mrs_01_1045__b1382173612264">storm kill </strong><em id="mrs_01_1045__i1883173642611">Topology name</em></p>
</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>