<?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 Can Oozie invoke and RestFul service for notification ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208104#M69075</link>
    <description>&lt;P&gt;Can Oozie invoke and RestFul service for notification ? Is there an example which can be used ...&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 21:09:37 GMT</pubDate>
    <dc:creator>nyakkanti</dc:creator>
    <dc:date>2017-10-05T21:09:37Z</dc:date>
    <item>
      <title>Can Oozie invoke and RestFul service for notification ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208104#M69075</link>
      <description>&lt;P&gt;Can Oozie invoke and RestFul service for notification ? Is there an example which can be used ...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:09:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208104#M69075</guid>
      <dc:creator>nyakkanti</dc:creator>
      <dc:date>2017-10-05T21:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can Oozie invoke and RestFul service for notification ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208105#M69076</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/346/nyakkanti.html" nodeid="346"&gt;@nyakkanti&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;you can make use of oozie java action or oozie shell action to make the REST API calls.&lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/3.2.0-incubating/WorkflowFunctionalSpec.html#a3.2.7_Java_Action" target="_blank"&gt;https://oozie.apache.org/docs/3.2.0-incubating/WorkflowFunctionalSpec.html#a3.2.7_Java_Action&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/3.3.0/DG_ShellActionExtension.html" target="_blank"&gt;https://oozie.apache.org/docs/3.3.0/DG_ShellActionExtension.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;below is a sample shell action calling python code&lt;/P&gt;&lt;PRE&gt;&amp;lt;action name="metrics"&amp;gt;  &amp;lt;shell xmlns="uri:oozie:shell-action:0.2"&amp;gt;   &amp;lt;job-tracker&amp;gt;${RESOURCE_MANAGER}&amp;lt;/job-tracker&amp;gt;   &amp;lt;name-node&amp;gt;${NAME_NODE}&amp;lt;/name-node&amp;gt;   &amp;lt;exec&amp;gt;oozie_hook.py&amp;lt;/exec&amp;gt;  &amp;lt;argument&amp;gt;host&amp;lt;/argument&amp;gt;   &amp;lt;argument&amp;gt;port&amp;lt;/argument&amp;gt;   &amp;lt;file&amp;gt;${APP_PATH}/shell/oozie_hook.py#oozie_hook.py&amp;lt;/file&amp;gt;  &amp;lt;/shell&amp;gt;  &amp;lt;ok to="end"/&amp;gt;  &amp;lt;error to="kill"/&amp;gt; &amp;lt;/action&amp;gt;
&lt;/PRE&gt;&lt;P&gt;below is a sample python code ( not working for reference )&lt;/P&gt;&lt;PRE&gt;   url = "http://" + sys.argv[1] + ": " + sys.argv[2] + "/workflow/"

   r = requests.get(url,timeout=60)&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208105#M69076</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2017-10-05T21:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can Oozie invoke and RestFul service for notification ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208106#M69077</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10616/sgowda.html" nodeid="10616"&gt;@Santhosh B Gowda &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Why would you do that??? Why won't you just curl from the shell action? A part of me would die if I do this in my workflow!&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10616/sgowda.html" nodeid="10616"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:29:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-Oozie-invoke-and-RestFul-service-for-notification/m-p/208106#M69077</guid>
      <dc:creator>vivek_sethi</dc:creator>
      <dc:date>2018-10-25T17:29:22Z</dc:date>
    </item>
  </channel>
</rss>

