<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146163#M35773</link>
    <description>&lt;P&gt;I need to capture the job status, Start time and End Time of the work and mail it using the mail action in Oozie. &lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2016 18:57:16 GMT</pubDate>
    <dc:creator>sairamv</dc:creator>
    <dc:date>2016-07-25T18:57:16Z</dc:date>
    <item>
      <title>How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146163#M35773</link>
      <description>&lt;P&gt;I need to capture the job status, Start time and End Time of the work and mail it using the mail action in Oozie. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 18:57:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146163#M35773</guid>
      <dc:creator>sairamv</dc:creator>
      <dc:date>2016-07-25T18:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146164#M35774</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 19:07:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146164#M35774</guid>
      <dc:creator>sairamv</dc:creator>
      <dc:date>2016-07-25T19:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146165#M35775</link>
      <description>&lt;P&gt;You can do this by setting a parameter with start and end time.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;the_timestamp&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;${timestamp()}&amp;lt;/value&amp;gt;
&amp;lt;property&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Set that to start time and another to end time when you hit a action.&lt;/P&gt;&lt;P&gt;For information on oozie emails here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/3.3.0/DG_EmailActionExtension.html" target="_blank"&gt;https://oozie.apache.org/docs/3.3.0/DG_EmailActionExtension.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 04:42:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146165#M35775</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-26T04:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146166#M35776</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2381/sairamv.html" nodeid="2381"&gt;@Sai ram&lt;/A&gt;&lt;P&gt;There are no direct variables to get start time and end time in oozie. '${timestamp()}' can return current timestamp in UTC. I would suggest to use another approach, start and end your oozie workflow with an email action, in this way, you will receive 2 emails, one when your oozie workflow will start and another when your job will end. If you want more better solution then I would suggest to write a script which will fetch start time, end time from oozie commands or from oozie database and have script to send an email for multiple jobs at once in a tabular format.&lt;/P&gt;&lt;P&gt;Hope this information helps. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:35:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146166#M35776</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-26T11:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146167#M35777</link>
      <description>&lt;P&gt;I need to capture the highlighted fields in the screenshot. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6056-capture.png" style="width: 1219px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21445iFE4B528E174F36B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6056-capture.png" alt="6056-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:27:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146167#M35777</guid>
      <dc:creator>sairamv</dc:creator>
      <dc:date>2019-08-18T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146168#M35778</link>
      <description>&lt;P&gt;Thanks, but I am not looking for timestamp, I need the job status and execution time. In short, I need to mail the output of this command, &lt;STRONG&gt;oozie job -oozie {SERVER_DETAILS} -info ${job_id}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:42:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146168#M35778</guid>
      <dc:creator>sairamv</dc:creator>
      <dc:date>2016-07-26T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146169#M35779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; Is there a way where I can execute this command inside the mail action in oozie ? &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;oozie job -oozie {SERVER_DETAILS} -info ${job_id}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:42:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146169#M35779</guid>
      <dc:creator>sairamv</dc:creator>
      <dc:date>2016-07-26T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send a mail in Oozie by mentioning the Start Time and End Time in the mail body ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146170#M35780</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2381/sairamv.html" nodeid="2381"&gt;@Sai ram&lt;/A&gt; - No you cann't. But you can write a shell action and in shell script you can execute this command as well as mail command&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 23:34:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-send-a-mail-in-Oozie-by-mentioning-the-Start-Time/m-p/146170#M35780</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-26T23:34:19Z</dc:date>
    </item>
  </channel>
</rss>

