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

17 lines
3.0 KiB
HTML

<a name="mrs_01_2372"></a><a name="mrs_01_2372"></a>
<h1 class="topictitle1">Submitting a Hive Script</h1>
<div id="body0000001074907696"><div class="section" id="mrs_01_2372__sece971ac6b8e42a8bd639bc47a9715e8"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_2372__a20e8f318a3004a948f33b97dd24390e5">This section describes how to submit a Hive job on the Hue web UI.</p>
</div>
<div class="section" id="mrs_01_2372__section527811882013"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_2372__o6f72e354cc904a208752f15623eeaebc"><li id="mrs_01_2372__l9c41aa2dac9a48198a3bcb2c170e86e2"><span>Access the Hue web UI. For details, see <a href="mrs_01_0132.html">Accessing the Hue Web UI</a>.</span></li><li id="mrs_01_2372__le55d509ceb004262807d4bb7533bdda1"><span>In the navigation tree on the left, click <span><img id="mrs_01_2372__image2607133802416" src="en-us_image_0000001349090113.png"></span> and choose <strong id="mrs_01_2372__b1314444417330">Workflow</strong> to open the Workflow editor.</span></li><li id="mrs_01_2372__l22b5ec105e39433188223f788bc5fe2d"><span>Click <strong id="mrs_01_2372__b77063193413">Documents</strong>, click <span><img id="mrs_01_2372__image1663172661315" src="en-us_image_0000001349289589.png"></span> to select a Hive script from the operation list, and drag it to the operation page.</span></li><li id="mrs_01_2372__lf1fdc1b28b574502a3988b3bbd281232"><span>In the <strong id="mrs_01_2372__b15570143010343">HiveServer2 Script</strong> dialog box that is displayed, select the saved Hive script. For details about how to save the Hive script, see <a href="mrs_01_0134.html">Using HiveQL Editor on the Hue Web UI</a>. Select a script and click <strong id="mrs_01_2372__b35593412348">Add</strong>.</span><p><p id="mrs_01_2372__p142311047151615"><span><img id="mrs_01_2372__image185953486160" src="en-us_image_0000001348770301.png"></span></p>
</p></li><li id="mrs_01_2372__l227e9bd11d4f4711be2721dd1a192973"><span>Configure the Job XML, for example, to the HDFS path <strong id="mrs_01_2372__b12106242164920">/user/admin/examples/apps/hive2/hive-site.xml</strong>. For details, see <a href="mrs_01_1820.html">Submitting a Hive2 Job</a>.</span></li><li id="mrs_01_2372__li15615163711213"><span>Click <span><img id="mrs_01_2372__image1236335111194" src="en-us_image_0000001296249920.png"></span> in the upper right corner of the Oozie editor.</span></li><li id="mrs_01_2372__lfd13b90c41184d54bf38baa77da8d239"><span>After the configuration is saved, click <span><img id="mrs_01_2372__iff9543b1b0844c67b0158de04ac7a770" src="en-us_image_0000001295770484.jpg"></span>, and submit the job.</span><p><p id="mrs_01_2372__a5b8939a5e7934158bce4725266f78abe">After the job is submitted, you can view the related contents of the job, such as the detailed information, logs, and processes, on Hue.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1819.html">Submitting a Workflow Job</a></div>
</div>
</div>