<?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 Re: oozie shell action in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235707#M197520</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&amp;gt;this file should be created locally on the node manager where your shell script was run&lt;/P&gt;&lt;P&gt;I have the file locally on a node. It is on this node that I execute the oozie command.&lt;/P&gt;&lt;P&gt;Are you saying that the shell script should be in hdfs? And that yarn will execute this shell script on the node manager on which this job was run? Rather than on the host from which I run the oozie command?&lt;/P&gt;&lt;P&gt;Appreciate the feedback.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 07 Mar 2019 03:10:17 GMT</pubDate>
    <dc:creator>vtpcnk</dc:creator>
    <dc:date>2019-03-07T03:10:17Z</dc:date>
    <item>
      <title>oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235703#M197516</link>
      <description>&lt;P&gt;I created a similar job as in : &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/content/supportkb/48985/how-to-setup-oozie-shell-action.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/48985/how-to-setup-oozie-shell-action.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On execution the yarn log shows as success.&lt;/P&gt;&lt;P&gt;But I can't see the /tmp/output file being created anywhere. I checked on the local linux host as well as hdfs.&lt;/P&gt;&lt;P&gt;One question I have is in job.properties -&lt;/P&gt;&lt;P&gt;oozie.coord.application.path=${nameNode}/user/root/apps/shell&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Should the configuration files (job.properties, coordinator.xml etc) reside in the above directory? I have them there.&lt;/P&gt;&lt;P&gt;Not sure what is happening.&lt;/P&gt;&lt;P&gt;Appreciate the insights.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 22:54:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235703#M197516</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-05T22:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235704#M197517</link>
      <description>&lt;P&gt;In the yarn log for the job I can see :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Invoking Shell command line now &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Exit code of the Shell command 0&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt; Invocation of Shell command completed &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt; Invocation of Main class completed &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Oozie Launcher, capturing output data:&lt;BR /&gt;=======================&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 02:18:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235704#M197517</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-06T02:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235705#M197518</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please check on the node manager where this launcher was run, ideally this file should be created locally on the node manager where your shell script was run.&lt;/P&gt;&lt;P&gt;Please do let me know if you need any further help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 03:01:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235705#M197518</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2019-03-07T03:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235706#M197519</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; , any insights pls? Appreciate the help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2019 03:01:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235706#M197519</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-07T03:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235707#M197520</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&amp;gt;this file should be created locally on the node manager where your shell script was run&lt;/P&gt;&lt;P&gt;I have the file locally on a node. It is on this node that I execute the oozie command.&lt;/P&gt;&lt;P&gt;Are you saying that the shell script should be in hdfs? And that yarn will execute this shell script on the node manager on which this job was run? Rather than on the host from which I run the oozie command?&lt;/P&gt;&lt;P&gt;Appreciate the feedback.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2019 03:10:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235707#M197520</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-07T03:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235708#M197521</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;yes, I checked the nodes and found the output in one of them. I reran to make sure.&lt;/P&gt;&lt;P&gt;So the script is not really needed on the Linux box? all of them - job.properties, the shellscript, workflow.xml, coordinator.xml? They need to be only in hdfs?&lt;/P&gt;&lt;P&gt;Also next, how to execute a python code from oozie? Also I want it to run daily.&lt;/P&gt;&lt;P&gt;Appreciate the insights.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2019 03:21:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235708#M197521</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-07T03:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235709#M197522</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni,&lt;/A&gt; I created python action based on &lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/content/supportkb/151119/how-to-run-a-python-script-using-oozie-shell-actio.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/151119/how-to-run-a-python-script-using-oozie-shell-actio.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But how do I integrate coordinator.xml with that?&lt;/P&gt;&lt;P&gt;I tried creating the file but it is not executing as per that.&lt;/P&gt;&lt;P&gt;Is there somewhere in job.properties or workflow.xml that you mention coordinator.xml?&lt;/P&gt;&lt;P&gt;Appreciate the feedback.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2019 22:34:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235709#M197522</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-08T22:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235710#M197523</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html"&gt;@n c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;job.properties -&amp;gt; Needs to be on local filesystem on Oozie client from where you wish to submit the oozie job -run command. No need to have this file on HDFS.&lt;/P&gt;&lt;P&gt;workflow.xml -&amp;gt; This needs to be on HDFS.&lt;/P&gt;&lt;P&gt;script -&amp;gt; This needs to be on HDFS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regarding your question on python script - Please refer below article for how to create coordinator ( Please ignore input event part )&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.html" target="_blank"&gt;https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;in coordinator.xml you mention "&amp;lt;app-path&amp;gt;${workflowAppUri}&amp;lt;/app-path&amp;gt;" that's what is location of workflow.xml&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please use Ambari workflow manager to design coordinators and workflows with easy WebUI.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions. Please accept my answer if it was helpful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 02:33:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235710#M197523</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2019-03-09T02:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235711#M197524</link>
      <description>&lt;P&gt;Hi Kuldeep, thanks so much for the clarification.&lt;/P&gt;&lt;P&gt;I will try to do as per your instructions and let you know how it went.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 02:58:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235711#M197524</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-09T02:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235712#M197525</link>
      <description>&lt;P&gt;BTW now I use cloudera. So I guess it has to be manual. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 02:59:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235712#M197525</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-09T02:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235713#M197526</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; , does your example : &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.html" target="_blank"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.html" target="_blank"&gt;https://community.hortonworks.com/articles/27497/oozie-coordinator-and-based-on-input-data-events.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;set the job to run once a day?&lt;/P&gt;&lt;P&gt;If not, can you please let me know how to do that? I want to run a job once daily. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 03:07:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235713#M197526</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-09T03:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235714#M197527</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt; &lt;BR /&gt;For some reason, I'm not able to add a comment in this post so replying as an answer:&lt;/P&gt;&lt;P&gt;For CDH, you can use Hue to design the submit the workflow. &lt;/P&gt;&lt;P&gt;For frequency - here is you can change the frequency of coordinator as per your requirement &lt;/P&gt;&lt;PRE&gt;&lt;P&gt;&amp;nbsp;frequency="${coord:days(1)}"&lt;/P&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Mar 2019 03:38:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235714#M197527</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2019-03-09T03:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: oozie shell action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235715#M197528</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html"&gt;@Kuldeep Kulkarni&lt;/A&gt;, there are many lines with "input data" in the page you referred - not sure which ones to ignore.&lt;/P&gt;&lt;P&gt;Should I ignore the sections for datasets/input events/output events - that will leave only the workflow section.&lt;/P&gt;&lt;P&gt;Is that right?&lt;/P&gt;&lt;P&gt;Can't I use the coordinator from your shell action example?&lt;/P&gt;&lt;P&gt;But in that I don't see : "&amp;lt;app-path&amp;gt;${workflowAppUri}&amp;lt;/app-path&amp;gt;"&lt;/P&gt;&lt;P&gt;Appreciate the clarification.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:02:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-shell-action/m-p/235715#M197528</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2019-03-11T21:02:23Z</dc:date>
    </item>
  </channel>
</rss>

