forked from docs/doc-exports
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>
67 lines
12 KiB
HTML
67 lines
12 KiB
HTML
<a name="mrs_01_24114"></a><a name="mrs_01_24114"></a>
|
|
|
|
<h1 class="topictitle1">Submitting an Email Job in Hue</h1>
|
|
<div id="body32001227"><div class="section" id="mrs_01_24114__en-us_topic_0000001219149761_section102201151218"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24114__en-us_topic_0000001219149761_p1348332912210">This section describes how to add an email job on the Hue web UI.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24114__en-us_topic_0000001219149761_section198876019313"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_24114__en-us_topic_0000001219149761_ol163991712239"><li id="mrs_01_24114__en-us_topic_0000001219149761_li9399312339"><span>Log in to Manager, choose <span id="mrs_01_24114__en-us_topic_0000001219149761_text45421919858"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b198245436499">Cluster</strong> > <em id="mrs_01_24114__en-us_topic_0000001219149761_i9384548174914">Name of the desired cluster</em> > <strong id="mrs_01_24114__en-us_topic_0000001219149761_b167921653124916">Services</strong> > <strong id="mrs_01_24114__en-us_topic_0000001219149761_b10519174715111">Oozie</strong> > <strong id="mrs_01_24114__en-us_topic_0000001219149761_b711241017507">Configurations</strong>, switch from <strong id="mrs_01_24114__en-us_topic_0000001219149761_b185131055125013">Basic Configurations</strong> to <strong id="mrs_01_24114__en-us_topic_0000001219149761_b1226315175119">All Configurations</strong>,</span> and search for the <strong id="mrs_01_24114__en-us_topic_0000001219149761_b171261730135112">oozie.site.configs</strong> parameter.</span><p><p id="mrs_01_24114__en-us_topic_0000001219149761_p10429202679"><span><img id="mrs_01_24114__en-us_topic_0000001219149761_image17429121173" src="en-us_image_0000001296219420.png"></span></p>
|
|
</p></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li1684632719213"><span>Add the following parameters and click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b298462375215">Save</strong>. In the displayed dialog box, click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b428642785211">OK</strong>.</span><p>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24114__en-us_topic_0000001219149761_table165313112554" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24114__en-us_topic_0000001219149761_row665453115520"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.2.2.1.2.3.1.1"><p id="mrs_01_24114__en-us_topic_0000001219149761_p765433120557">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.2.2.1.2.3.1.2"><p id="mrs_01_24114__en-us_topic_0000001219149761_p2065493116557">Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24114__en-us_topic_0000001219149761_row165483115519"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p17654183175517">oozie.email.smtp.host</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p7654143110552"><em id="mrs_01_24114__en-us_topic_0000001219149761_i14337102845315">SMTP server</em>, for example, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b2056823695310">xxx.xxx.com</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row15654531195512"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p3654431195514">oozie.email.from.address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p6564418566"><em id="mrs_01_24114__en-us_topic_0000001219149761_i977981485418">Sender email address</em>, for example, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b20441142165416">zhangsan@<em id="mrs_01_24114__en-us_topic_0000001219149761_i2391132510541">xx</em>.com</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row106543313555"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p96544317556">oozie.email.smtp.auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p0654123118554"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b13347194117494">true</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row7654193165516"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p1654193115511">oozie.email.smtp.username</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p9654123110556"><em id="mrs_01_24114__en-us_topic_0000001219149761_i18936204911542">Sender account</em>, for example, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b529711815553">zhangsan</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row165420319551"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p86542318559">oozie.email.smtp.password</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p13654123110556"><em id="mrs_01_24114__en-us_topic_0000001219149761_i151828155516">Sender account password</em>, for example, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b120013324556">111111</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row46542315558"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p12654163117555">oozie.email.attachment.enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p186541331165518"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b372854554913">true</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24114__en-us_topic_0000001219149761_row4878135718576"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.1 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p3878135717575">oozie.email.smtp.port</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.2.2.1.2.3.1.2 "><p id="mrs_01_24114__en-us_topic_0000001219149761_p10878357155715"><em id="mrs_01_24114__en-us_topic_0000001219149761_i189049432550">SMTP server port number</em>, for example, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b1361034755512">25</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="mrs_01_24114__en-us_topic_0000001219149761_l92953d59a7744c829f64b35742f4d92d"><span>On the Oozie dashboard page, choose <strong id="mrs_01_24114__en-us_topic_0000001219149761_b208191820135715">More</strong> > <strong id="mrs_01_24114__en-us_topic_0000001219149761_b158831024145717">Restart Service</strong>, enter the system administrator password, and click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b19830123325720">OK</strong> to restart the Oozie service.</span></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li1230314217220"><span>Log in to 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_24114__en-us_topic_0000001219149761_li155991244192215"><span>In the navigation tree on the left, click <span><img id="mrs_01_24114__en-us_topic_0000001219149761_image2607133802416" src="en-us_image_0000001349139501.png"></span> and choose <strong id="mrs_01_24114__en-us_topic_0000001219149761_b1782826895351">Workflow</strong> to open the Workflow editor.</span></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li5382125702219"><span>Click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b14801220700">Documents</strong>, click <span><img id="mrs_01_24114__en-us_topic_0000001219149761_image56684111326" src="en-us_image_0000001296059792.png"></span> to select a Hive script from the operation list, and drag it to the operation page.</span><p><p id="mrs_01_24114__en-us_topic_0000001219149761_p96712522226"><span><img id="mrs_01_24114__en-us_topic_0000001219149761_image415414543229" src="en-us_image_0000001295739984.png"></span></p>
|
|
</p></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li137871131231"><span>In the displayed dialog box, configure <strong id="mrs_01_24114__en-us_topic_0000001219149761_b1756416216117">To addresses</strong>, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b141361123815">Subject</strong>, and <strong id="mrs_01_24114__en-us_topic_0000001219149761_b38397241813">Body</strong>, and click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b542615369120">Add</strong>.</span><p><ul id="mrs_01_24114__en-us_topic_0000001219149761_ul1575164918515"><li id="mrs_01_24114__en-us_topic_0000001219149761_li107544914517"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b13771145813114">To addresses</strong>: specifies the recipient email address. Separate multiple email addresses with commas (,).</li><li id="mrs_01_24114__en-us_topic_0000001219149761_li76531951175114"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b14754194115214">Subject</strong>: specifies the email subject.</li><li id="mrs_01_24114__en-us_topic_0000001219149761_li994155345114"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b143301460219">Body</strong>: specifies the email body.</li></ul>
|
|
</p></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li812114982313"><span>You can configure <strong id="mrs_01_24114__en-us_topic_0000001219149761_b13440541732">cc</strong>, <strong id="mrs_01_24114__en-us_topic_0000001219149761_b1444711419310">bcc</strong>, and <strong id="mrs_01_24114__en-us_topic_0000001219149761_b44471541132">Attachment</strong> in the displayed dialog box based on service requirements.</span><p><ul id="mrs_01_24114__en-us_topic_0000001219149761_ul31933401532"><li id="mrs_01_24114__en-us_topic_0000001219149761_li16193184019532"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b59381751181219">cc</strong>: specifies the address that will receive the carbon copy of the email. Separate multiple email addresses with commas (,).</li><li id="mrs_01_24114__en-us_topic_0000001219149761_li1926834235318"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b181537521379">bcc</strong>: specifies the address that will receive the carbon copy of the email and is invisible to the recipient. Separate multiple email addresses with commas (,).</li><li id="mrs_01_24114__en-us_topic_0000001219149761_li19458545155320"><strong id="mrs_01_24114__en-us_topic_0000001219149761_b126593161396">Attachment</strong>: specifies the HDFS address of the attachment.</li></ul>
|
|
<p id="mrs_01_24114__en-us_topic_0000001219149761_p2771811341"><span><img id="mrs_01_24114__en-us_topic_0000001219149761_image850214117209" src="en-us_image_0000001348739813.png"></span></p>
|
|
</p></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li6369173172313"><span>Click <span><img id="mrs_01_24114__en-us_topic_0000001219149761_image1236335111194" src="en-us_image_0000001295739980.png"></span> in the upper right corner of the Oozie editor to save the job.</span></li><li id="mrs_01_24114__en-us_topic_0000001219149761_li578663602311"><span>After the job is saved, click <span><img id="mrs_01_24114__en-us_topic_0000001219149761_iff9543b1b0844c67b0158de04ac7a770" src="en-us_image_0000001296059788.jpg"></span>. In the displayed dialog box, click <strong id="mrs_01_24114__en-us_topic_0000001219149761_b4766152311611">Submit</strong> to submit the job.</span><p><p id="mrs_01_24114__en-us_topic_0000001219149761_p19861839193419">After the job is submitted, you can view the related contents of the job, such as the detailed information, logs, and processes, on the Hue web UI.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<p id="mrs_01_24114__en-us_topic_0000001219149761_p8060118"></p>
|
|
</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>
|
|
|