Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

18 lines
4.7 KiB
HTML

<a name="mrs_01_1824"></a><a name="mrs_01_1824"></a>
<h1 class="topictitle1">Submitting a MapReduce Job in Hue</h1>
<div id="body8662426"><div class="section" id="mrs_01_1824__en-us_topic_0000001219149193_sa4b9549547ee4128a48afc12a59d6c17"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1824__en-us_topic_0000001219149193_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__en-us_topic_0000001219149193_sc04738c1509f484d913f7a642796b327"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1824__en-us_topic_0000001219149193_o45e23f180e1747fa9eb1d97e9b319aa6"><li id="mrs_01_1824__en-us_topic_0000001219149193_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__en-us_topic_0000001219149193_l65d6ca5286e2416b99906f35a56190da"><span>On the workflow editing page, select <span><img id="mrs_01_1824__en-us_topic_0000001219149193_ie4d43fab5bae4d6f8f6a200e11b5f016" src="en-us_image_0000001349059541.jpg"></span> next to <strong id="mrs_01_1824__en-us_topic_0000001219149193_b9108183811810">MapReduce job</strong> and drag it to the operation area.</span></li><li id="mrs_01_1824__en-us_topic_0000001219149193_l99f589e6e31e491ab06bb095422641b5"><span>In the displayed <strong id="mrs_01_1824__en-us_topic_0000001219149193_b4985104610186">MapReduce job</strong> dialog box, set <span class="parmname" id="mrs_01_1824__en-us_topic_0000001219149193_parmname322174110199"><b>Jar name</b></span>, for example, to <strong id="mrs_01_1824__en-us_topic_0000001219149193_b098620462188">/user/admin/examples/apps/map-reduce/lib/oozie-examples-5.1.0.jar</strong>. Click <strong id="mrs_01_1824__en-us_topic_0000001219149193_b5380175911816">Add</strong>.</span></li><li id="mrs_01_1824__en-us_topic_0000001219149193_li219082514496"><span>Click <strong id="mrs_01_1824__en-us_topic_0000001219149193_b19978817354">PROPERTIES+</strong> to add input and output properties.</span><p><p id="mrs_01_1824__en-us_topic_0000001219149193_p383170165212">For example, set the value of <span class="parmname" id="mrs_01_1824__en-us_topic_0000001219149193_parmname1838941414201"><b>mapred.input.dir</b></span> to <strong id="mrs_01_1824__en-us_topic_0000001219149193_b556316108357">/user/admin/examples/input-data/text</strong> and set the value of <span class="parmname" id="mrs_01_1824__en-us_topic_0000001219149193_parmname1660182302018"><b>mapred.output.dir</b></span> to <strong id="mrs_01_1824__en-us_topic_0000001219149193_b55638104359">/user/admin/examples/output-data/map-reduce_workflow</strong>.</p>
</p></li><li id="mrs_01_1824__en-us_topic_0000001219149193_l568558da7da14d299313bfdb3d12ba35"><span>Click the configuration button <span><img id="mrs_01_1824__en-us_topic_0000001219149193_i897cc04cb8c24a2c8824485be52ead46" src="en-us_image_0000001349258997.jpg"></span> in the upper right corner. On the configuration page that is displayed, click <span class="uicontrol" id="mrs_01_1824__en-us_topic_0000001219149193_uicontrol7520734173515"><b>Delete +</b></span> to delete a directory, for example, <strong id="mrs_01_1824__en-us_topic_0000001219149193_b352073413517">/user/admin/examples/output-data/map-reduce_workflow</strong>.</span></li><li id="mrs_01_1824__en-us_topic_0000001219149193_l8163d692595e41f4933460c58426db69"><span>Click <span><img id="mrs_01_1824__en-us_topic_0000001219149193_image1236335111194" src="en-us_image_0000001296219324.png"></span> in the upper right corner of the Oozie editor.</span><p><p id="mrs_01_1824__en-us_topic_0000001219149193_a83646b8d531e4bb79acec8ae4ecf6317">If you need to modify the job name before saving the job (default value: <strong id="mrs_01_1824__en-us_topic_0000001219149193_b1065614318192">My Workflow</strong>), click the name directly for modification, for example, <strong id="mrs_01_1824__en-us_topic_0000001219149193_b1366123141918">MapReduce-Workflow</strong>.</p>
</p></li><li id="mrs_01_1824__en-us_topic_0000001219149193_l340b2f634dff4d15834eb809dfe51112"><span>After the configuration is saved, click <span><img id="mrs_01_1824__en-us_topic_0000001219149193_ie93dfeeb4d454a5b82c6df4a19e8fbe9" src="en-us_image_0000001348739717.jpg"></span>, and submit the job.</span><p><p id="mrs_01_1824__en-us_topic_0000001219149193_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>