<?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 to get job status notifications from oozie? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94638#M7957</link>
    <description>&lt;P&gt;In an application, oozie jobs get submitted to be executed on the cluster. &lt;/P&gt;&lt;P&gt;We want to track when the job starts, runs and completes so that the application is updated. &lt;/P&gt;&lt;P&gt;Oozie provides a way to send the job status via a property called ‘oozie.wf.workflow.notification.url’ which can be configured in the workflow.xml. &lt;/P&gt;&lt;P&gt;Oozie sends a GET request to whatever the url they configure it to.
However, it doesn’t seem to be generating these notifications. &lt;/P&gt;&lt;P&gt;Does anything else need to be configured on the Oozie side in addition to the above modification to the workflow.xml?   Does anything need to be set elsewhere? &lt;/P&gt;&lt;P&gt;Here is what the workflow.xml looks like: &lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.4" name="ingest-tblrig-wf"&amp;gt;
   &amp;lt;start to="run-ingest-script" /&amp;gt;
   &amp;lt;action name="run-ingest-script"&amp;gt;
      &amp;lt;shell xmlns="uri:oozie:shell-action:0.2"&amp;gt;
         &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
         &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
         &amp;lt;configuration&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;mapred.job.user.name&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;${jobUserName}&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;oozie.wf.workflow.notification.url&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;http://server_name:8080/oozieNotification/jobUpdate?jobId=$jobId%26status=$status&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
         &amp;lt;/configuration&amp;gt;
         &amp;lt;exec&amp;gt;ingest_script_invoker.sh&amp;lt;/exec&amp;gt;
         &amp;lt;env-var&amp;gt;HADOOP_USER_NAME=DKari&amp;lt;/env-var&amp;gt;
         &amp;lt;file&amp;gt;ingest_script_invoker.sh&amp;lt;/file&amp;gt;
         &amp;lt;file&amp;gt;ingest_tblRig.sh&amp;lt;/file&amp;gt;
         &amp;lt;file&amp;gt;test_expect.sh&amp;lt;/file&amp;gt;
         &amp;lt;capture-output /&amp;gt;
      &amp;lt;/shell&amp;gt;
      &amp;lt;ok to="end" /&amp;gt;
      &amp;lt;error to="fail" /&amp;gt;
   &amp;lt;/action&amp;gt;
   &amp;lt;kill name="fail"&amp;gt;
      &amp;lt;message&amp;gt;Workflow failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
   &amp;lt;/kill&amp;gt;
   &amp;lt;end name="end" /&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Oct 2015 04:22:46 GMT</pubDate>
    <dc:creator>kbaxley</dc:creator>
    <dc:date>2015-10-01T04:22:46Z</dc:date>
    <item>
      <title>How to get job status notifications from oozie?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94638#M7957</link>
      <description>&lt;P&gt;In an application, oozie jobs get submitted to be executed on the cluster. &lt;/P&gt;&lt;P&gt;We want to track when the job starts, runs and completes so that the application is updated. &lt;/P&gt;&lt;P&gt;Oozie provides a way to send the job status via a property called ‘oozie.wf.workflow.notification.url’ which can be configured in the workflow.xml. &lt;/P&gt;&lt;P&gt;Oozie sends a GET request to whatever the url they configure it to.
However, it doesn’t seem to be generating these notifications. &lt;/P&gt;&lt;P&gt;Does anything else need to be configured on the Oozie side in addition to the above modification to the workflow.xml?   Does anything need to be set elsewhere? &lt;/P&gt;&lt;P&gt;Here is what the workflow.xml looks like: &lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.4" name="ingest-tblrig-wf"&amp;gt;
   &amp;lt;start to="run-ingest-script" /&amp;gt;
   &amp;lt;action name="run-ingest-script"&amp;gt;
      &amp;lt;shell xmlns="uri:oozie:shell-action:0.2"&amp;gt;
         &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
         &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
         &amp;lt;configuration&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;mapred.job.user.name&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;${jobUserName}&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
            &amp;lt;property&amp;gt;
               &amp;lt;name&amp;gt;oozie.wf.workflow.notification.url&amp;lt;/name&amp;gt;
               &amp;lt;value&amp;gt;http://server_name:8080/oozieNotification/jobUpdate?jobId=$jobId%26status=$status&amp;lt;/value&amp;gt;
            &amp;lt;/property&amp;gt;
         &amp;lt;/configuration&amp;gt;
         &amp;lt;exec&amp;gt;ingest_script_invoker.sh&amp;lt;/exec&amp;gt;
         &amp;lt;env-var&amp;gt;HADOOP_USER_NAME=DKari&amp;lt;/env-var&amp;gt;
         &amp;lt;file&amp;gt;ingest_script_invoker.sh&amp;lt;/file&amp;gt;
         &amp;lt;file&amp;gt;ingest_tblRig.sh&amp;lt;/file&amp;gt;
         &amp;lt;file&amp;gt;test_expect.sh&amp;lt;/file&amp;gt;
         &amp;lt;capture-output /&amp;gt;
      &amp;lt;/shell&amp;gt;
      &amp;lt;ok to="end" /&amp;gt;
      &amp;lt;error to="fail" /&amp;gt;
   &amp;lt;/action&amp;gt;
   &amp;lt;kill name="fail"&amp;gt;
      &amp;lt;message&amp;gt;Workflow failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
   &amp;lt;/kill&amp;gt;
   &amp;lt;end name="end" /&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:22:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94638#M7957</guid>
      <dc:creator>kbaxley</dc:creator>
      <dc:date>2015-10-01T04:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get job status notifications from oozie?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94639#M7958</link>
      <description>&lt;P&gt;I think you've set the value in the wrong place.  Try adding the value to your job.properties file and try again.&lt;/P&gt;&lt;P&gt;In this case, you embedded it in an action, when I believe it's meant to be a job level variable.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2015 04:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94639#M7958</guid>
      <dc:creator>dstreev</dc:creator>
      <dc:date>2015-10-03T04:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get job status notifications from oozie?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94640#M7959</link>
      <description>&lt;P&gt;If the oozie.wf.workflow.notification.url property is present in the workflow job properties when submitting the job, Oozie will make a notification to the provided URL when the workflow job changes its status.&lt;/P&gt;&lt;P&gt;If the URL contains any of the following tokens, they will be replaced with the actual values by Oozie before making the notification:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;$jobId : The workflow job ID&lt;/LI&gt;&lt;LI&gt;$status : the workflow current state&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 24 Oct 2015 09:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94640#M7959</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-24T09:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get job status notifications from oozie?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94641#M7960</link>
      <description>&lt;P&gt;@dstreever ,  I am using this oozie.wf.workflow.notification.url property but I am facing an issue :&lt;/P&gt;&lt;P&gt;&lt;A href="https://myknoxurl:8443/gateway/default/myproject/services/job/?user.name=tejwinder_singh" target="_blank"&gt;https://myknoxurl:8443/gateway/default/myproject/services/job/?user.name=tejwinder_singh&lt;/A&gt;&lt;/P&gt;&lt;P&gt; I am using knox to connect to remote tomcat (which will capture oozie's statuses)&lt;/P&gt;&lt;P&gt; How do I add my password to the URL ? Or Is there a better solution to do this via Knox ?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 02:31:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-job-status-notifications-from-oozie/m-p/94641#M7960</guid>
      <dc:creator>tejwinder91</dc:creator>
      <dc:date>2017-01-28T02:31:56Z</dc:date>
    </item>
  </channel>
</rss>

