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

19 lines
3.9 KiB
HTML

<a name="mrs_01_1824"></a><a name="mrs_01_1824"></a>
<h1 class="topictitle1">Submitting a MapReduce Job</h1>
<div id="body1591347173246"><div class="section" id="mrs_01_1824__sa4b9549547ee4128a48afc12a59d6c17"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1824__ab8e376ad00204a0188f5de750a8fe626">This section describes how to submit an Oozie job of the MapReduce type on the Hue web UI.</p>
</div>
<div class="section" id="mrs_01_1824__sc04738c1509f484d913f7a642796b327"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1824__o45e23f180e1747fa9eb1d97e9b319aa6"><li id="mrs_01_1824__l8825583f70d44d8d88f094866fe2a600"><span>Create a workflow. For details, see <a href="mrs_01_1818.html">Creating a Workflow</a>.</span></li><li id="mrs_01_1824__l65d6ca5286e2416b99906f35a56190da"><span>On the workflow editing page, select <span><img id="mrs_01_1824__ie4d43fab5bae4d6f8f6a200e11b5f016" src="en-us_image_0000001349170097.jpg"></span> next to <strong id="mrs_01_1824__b9108183811810">MapReduce job</strong> and drag it to the operation area.</span></li><li id="mrs_01_1824__l99f589e6e31e491ab06bb095422641b5"><span>In the displayed <strong id="mrs_01_1824__b4985104610186">MapReduce job</strong> dialog box, set <span class="parmname" id="mrs_01_1824__parmname322174110199"><b>Jar name</b></span>, for example, to <strong id="mrs_01_1824__b098620462188">/user/admin/examples/apps/map-reduce/lib/oozie-examples-5.1.0.jar</strong>. Click <strong id="mrs_01_1824__b5380175911816">Add</strong>.</span></li><li id="mrs_01_1824__li219082514496"><span>Click <strong id="mrs_01_1824__b19978817354">PROPERTIES+</strong> to add input and output properties.</span><p><p id="mrs_01_1824__p1094172116514"><span><img id="mrs_01_1824__image12941192135115" src="en-us_image_0000001349289681.png"></span></p>
<p id="mrs_01_1824__p383170165212">For example, set the value of <span class="parmname" id="mrs_01_1824__parmname1838941414201"><b>mapred.input.dir</b></span> to <strong id="mrs_01_1824__b556316108357">/user/admin/examples/input-data/text</strong> and set the value of <span class="parmname" id="mrs_01_1824__parmname1660182302018"><b>mapred.output.dir</b></span> to <strong id="mrs_01_1824__b55638104359">/user/admin/examples/output-data/map-reduce_workflow</strong>.</p>
</p></li><li id="mrs_01_1824__l568558da7da14d299313bfdb3d12ba35"><span>Click the configuration button <span><img id="mrs_01_1824__i897cc04cb8c24a2c8824485be52ead46" src="en-us_image_0000001296250004.jpg"></span> in the upper right corner. On the configuration page that is displayed, click <span class="uicontrol" id="mrs_01_1824__uicontrol7520734173515"><b>Delete +</b></span> to delete a directory, for example, <strong id="mrs_01_1824__b352073413517">/user/admin/examples/output-data/map-reduce_workflow</strong>.</span></li><li id="mrs_01_1824__l8163d692595e41f4933460c58426db69"><span>Click <span><img id="mrs_01_1824__image1236335111194" src="en-us_image_0000001295930528.png"></span> in the upper right corner of the Oozie editor.</span><p><p id="mrs_01_1824__a83646b8d531e4bb79acec8ae4ecf6317">If you need to modify the job name before saving the job (default value: <strong id="mrs_01_1824__b1065614318192">My Workflow</strong>), click the name directly for modification, for example, <strong id="mrs_01_1824__b1366123141918">MapReduce-Workflow</strong>.</p>
</p></li><li id="mrs_01_1824__l340b2f634dff4d15834eb809dfe51112"><span>After the configuration is saved, click <span><img id="mrs_01_1824__ie93dfeeb4d454a5b82c6df4a19e8fbe9" src="en-us_image_0000001296090360.jpg"></span>, and submit the job.</span><p><p id="mrs_01_1824__ac53474e98416487c8b9a3b5f1b113da6">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>