<?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 simple hue/oozie shell script failing ... seems to fail when oozie is extracting script from HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/simple-hue-oozie-shell-script-failing-seems-to-fail-when/m-p/47268#M45816</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I'm a oozie first time user trying to automate some of our spark jobs. They were failing so I figured I'd start with a simple script to establish we have things configured correctly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Bash cmd line: $ echo -e "A|1|2|3\nB|4|5|6" | hadoop fs -put - /ARisk/tmp/test.txt&lt;BR /&gt;works as expected.&lt;/P&gt;&lt;P&gt;I created an HDFS file: /user/hue/oozie/workspaces/workflows/craigTest.sh&lt;BR /&gt;with only the above cmd line in there.&lt;/P&gt;&lt;P&gt;$ hadoop fs -chmod 777 /user/hue/oozie/workspaces/workflows/craigTest.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;created an oozie workflow, shell script, click and select path to craigTest.sh above.&lt;/P&gt;&lt;P&gt;When I save and run the job I get a failure,&lt;/P&gt;&lt;P&gt;here is the log stdout:&lt;/P&gt;&lt;P&gt;Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], main() threw exception, Cannot run program "craigTest.sh" (in directory "/data6/yarn/nm/usercache/hue/appcache/application_1476725022124_0158/container_1476725022124_0158_01_000002"): error=2, No such file or directory&lt;BR /&gt;java.io.IOException: Cannot run program "craigTest.sh" (in directory "/data6/yarn/nm/usercache/hue/appcache/application_1476725022124_0158/container_1476725022124_0158_01_000002"): error=2, No such file or directory&lt;BR /&gt;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.execute(ShellMain.java:102)&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.run(ShellMain.java:61)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so I try to navigate to see where the job would run ....&lt;/P&gt;&lt;P&gt;[root@wrlmr1 usercache]# pwd; ls -al&lt;BR /&gt;/data6/yarn/nm/usercache&lt;BR /&gt;total 8&lt;BR /&gt;drwxr-xr-x 2 yarn yarn 4096 Jul 25 16:03 .&lt;BR /&gt;drwxr-xr-x 5 yarn hadoop 4096 Jul 25 16:43 ..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;nothing in the dir here .... do I have some kind of permission issue?&lt;/P&gt;&lt;P&gt;any pointers appreciated, this is CDH 5.8 out of the box.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Craig&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 13:48:31 GMT</pubDate>
    <dc:creator>curtin</dc:creator>
    <dc:date>2026-04-21T13:48:31Z</dc:date>
    <item>
      <title>simple hue/oozie shell script failing ... seems to fail when oozie is extracting script from HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/simple-hue-oozie-shell-script-failing-seems-to-fail-when/m-p/47268#M45816</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I'm a oozie first time user trying to automate some of our spark jobs. They were failing so I figured I'd start with a simple script to establish we have things configured correctly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Bash cmd line: $ echo -e "A|1|2|3\nB|4|5|6" | hadoop fs -put - /ARisk/tmp/test.txt&lt;BR /&gt;works as expected.&lt;/P&gt;&lt;P&gt;I created an HDFS file: /user/hue/oozie/workspaces/workflows/craigTest.sh&lt;BR /&gt;with only the above cmd line in there.&lt;/P&gt;&lt;P&gt;$ hadoop fs -chmod 777 /user/hue/oozie/workspaces/workflows/craigTest.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;created an oozie workflow, shell script, click and select path to craigTest.sh above.&lt;/P&gt;&lt;P&gt;When I save and run the job I get a failure,&lt;/P&gt;&lt;P&gt;here is the log stdout:&lt;/P&gt;&lt;P&gt;Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], main() threw exception, Cannot run program "craigTest.sh" (in directory "/data6/yarn/nm/usercache/hue/appcache/application_1476725022124_0158/container_1476725022124_0158_01_000002"): error=2, No such file or directory&lt;BR /&gt;java.io.IOException: Cannot run program "craigTest.sh" (in directory "/data6/yarn/nm/usercache/hue/appcache/application_1476725022124_0158/container_1476725022124_0158_01_000002"): error=2, No such file or directory&lt;BR /&gt;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.execute(ShellMain.java:102)&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.run(ShellMain.java:61)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so I try to navigate to see where the job would run ....&lt;/P&gt;&lt;P&gt;[root@wrlmr1 usercache]# pwd; ls -al&lt;BR /&gt;/data6/yarn/nm/usercache&lt;BR /&gt;total 8&lt;BR /&gt;drwxr-xr-x 2 yarn yarn 4096 Jul 25 16:03 .&lt;BR /&gt;drwxr-xr-x 5 yarn hadoop 4096 Jul 25 16:43 ..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;nothing in the dir here .... do I have some kind of permission issue?&lt;/P&gt;&lt;P&gt;any pointers appreciated, this is CDH 5.8 out of the box.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Craig&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:48:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/simple-hue-oozie-shell-script-failing-seems-to-fail-when/m-p/47268#M45816</guid>
      <dc:creator>curtin</dc:creator>
      <dc:date>2026-04-21T13:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: simple hue/oozie shell script failing ... seems to fail when oozie is extracting script from HDF</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/simple-hue-oozie-shell-script-failing-seems-to-fail-when/m-p/47347#M45817</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;this finally got resolved, I was missing the &amp;lt;file&amp;gt;&amp;nbsp;tag in the workflow.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exec&amp;gt;/user/mrt1/oozie-oozi/craigTest.sh&amp;lt;/exec&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;file&amp;gt;/user/mrt1/oozie-oozi/craigTest.sh#craigTest.sh&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague suggested adding the file tag and trying it, low and behold it worked. I then went back to Hue and saw the "files+" section added the full path there and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message kind of makes sense, but I would think Hue wouldn't let me create the shell action without the &amp;lt;file&amp;gt; tag. I guess it means never create a workflow.xml with only the &amp;lt;exec&amp;gt; tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 21:20:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/simple-hue-oozie-shell-script-failing-seems-to-fail-when/m-p/47347#M45817</guid>
      <dc:creator>curtin</dc:creator>
      <dc:date>2016-11-14T21:20:22Z</dc:date>
    </item>
  </channel>
</rss>

