<?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 not executing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42569#M33567</link>
    <description>Thank you for letting us know the solution!</description>
    <pubDate>Sun, 03 Jul 2016 19:26:03 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2016-07-03T19:26:03Z</dc:date>
    <item>
      <title>Oozie shell action not executing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42525#M33565</link>
      <description>&lt;P&gt;I have created an Oozie workflow which runs the shell action and process the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the workflow XML for the shell action,&lt;/P&gt;&lt;P&gt;&amp;lt;workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5"&amp;gt;&lt;BR /&gt;&amp;lt;start to="shell-a221"/&amp;gt;&lt;BR /&gt;&amp;lt;kill name="Kill"&amp;gt;&lt;BR /&gt;&amp;lt;message&amp;gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;&lt;BR /&gt;&amp;lt;/kill&amp;gt;&lt;BR /&gt;&amp;lt;action name="shell-a221"&amp;gt;&lt;BR /&gt;&amp;lt;shell xmlns="uri:oozie:shell-action:0.1"&amp;gt;&lt;BR /&gt;&amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;&lt;BR /&gt;&amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;&lt;BR /&gt;&amp;lt;exec&amp;gt;hdfs://${namenode}/tmp/data/file/&lt;SPAN&gt;shellScript.sh&lt;/SPAN&gt;&amp;lt;/exec&amp;gt;&lt;BR /&gt;&amp;lt;argument&amp;gt;${agr0}&amp;lt;/argument&amp;gt;&lt;BR /&gt;&amp;lt;argument&amp;gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;{agr1}&lt;/SPAN&gt;&amp;lt;/argument&amp;gt;&lt;BR /&gt;&amp;lt;argument&amp;gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;{agr2}&lt;/SPAN&gt;&amp;lt;/argument&amp;gt;&lt;BR /&gt;&amp;lt;capture-output/&amp;gt;&lt;BR /&gt;&amp;lt;/shell&amp;gt;&lt;BR /&gt;&amp;lt;ok to="End"/&amp;gt;&lt;BR /&gt;&amp;lt;error to="Kill"/&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;&amp;lt;end name="End"/&amp;gt;&lt;BR /&gt;&amp;lt;/workflow-app&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the above workflow XML i am getting the below error message,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cannot run program "shellScript.sh" (in directory "/mnt/yarn/nm/usercache/admin/appcache/application_1464237984019_797762/container_e140_1464237984019_797762_01_000002"): error=2, No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could any one please help me out in resolving this issue&amp;nbsp;&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:28:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42525#M33565</guid>
      <dc:creator>Ankith</dc:creator>
      <dc:date>2022-09-16T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie shell action not executing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42530#M33566</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;By following the below steps i have resolved the issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;1. Just give the name of the file in 'Shell Command' field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2. After clicking enter, you see 'Files' button.&amp;nbsp;Select the HDFS path to the script in that field and submit the action.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;By this way, it will add an element as below, in the workflow xml.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;lt;file&amp;gt;&lt;SPAN&gt;hdfs://${namenode}/tmp/data/file/&lt;/SPAN&gt;&lt;SPAN&gt;shellScript.sh&lt;/SPAN&gt;&amp;lt;/file&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:09:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42530#M33566</guid>
      <dc:creator>Ankith</dc:creator>
      <dc:date>2016-07-01T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie shell action not executing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42569#M33567</link>
      <description>Thank you for letting us know the solution!</description>
      <pubDate>Sun, 03 Jul 2016 19:26:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/42569#M33567</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2016-07-03T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie shell action not executing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/58899#M33568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still getting these errors even though I'm mentioning it as you suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;exec&amp;gt;${automationAppRoot}/scripts/common/get_current_time_in_seconds.sh&amp;lt;/exec&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file&amp;gt;${automationAppRoot}/scripts/common/get_current_time_in_seconds.sh&amp;lt;/file&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And, this issue is intermittent. Any idea?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Subu.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Aug 2017 12:26:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-shell-action-not-executing/m-p/58899#M33568</guid>
      <dc:creator>thallapakas</dc:creator>
      <dc:date>2017-08-16T12:26:04Z</dc:date>
    </item>
  </channel>
</rss>

