title: cant run shell in oozie ( error=2, No such file or directory )
body: <p>I create workflow in ambari-views ui for oozie and sample.sh file in my workflow
  after run that i have an error. when i change body of shell to simple command for example <code>echo 1</code> this error did not appear 
  please advise me </p>
  
  <pre><code>2:34,752  WARN ShellActionExecutor:523 - SERVER[dlmaster02.sic] USER[root] GROUP[-] TOKEN[] APP[shell-wf] JOB[0000043-180630152627142-oozie-oozi-W] ACTION[0000043-180630152627142-oozie-oozi-W@shell-node] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.ShellMain], main() threw exception, Cannot run program &amp;quot;sample.sh&amp;quot; (in directory &amp;quot;/hadoop/yarn/local/usercache/root/appcache/application_1531029096800_0022/container_e18_1531029096800_0022_01_000002&amp;quot;): error=2, No such file or directory
  2018-07-21 16:42:34,753  WARN ShellActionExecutor:523 - SERVER[dlmaster02.sic] USER[root] GROUP[-] TOKEN[] APP[shell-wf] JOB[0000043-180630152627142-oozie-oozi-W] ACTION[0000043-180630152627142-oozie-oozi-W@shell-node] Launcher exception: Cannot run program &amp;quot;sample.sh&amp;quot; (in directory &amp;quot;/hadoop/yarn/local/usercache/root/appcache/application_1531029096800_0022/container_e18_1531029096800_0022_01_000002&amp;quot;): error=2, No such file or directory
  java.io.IOException: Cannot run program &amp;quot;sample.sh&amp;quot; (in directory &amp;quot;/hadoop/yarn/local/usercache/root/appcache/application_1531029096800_0022/container_e18_1531029096800_0022_01_000002&amp;quot;): error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
      at org.apache.oozie.action.hadoop.ShellMain.execute(ShellMain.java:110)
      at org.apache.oozie.action.hadoop.ShellMain.run(ShellMain.java:69)
      at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:75)
      at org.apache.oozie.action.hadoop.ShellMain.main(ShellMain.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:231)
      at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
      at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:170)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1869)
      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164)
  Caused by: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.forkAndExec(Native Method)
      at java.lang.UNIXProcess.&amp;lt;init&amp;gt;(UNIXProcess.java:247)
      at java.lang.ProcessImpl.start(ProcessImpl.java:134)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
      ... 17 more
  </code></pre>
  
  <p>the xml of my workflow </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;workflow-app xmlns="uri:oozie:workflow:0.5" name="test"&gt;
      &lt;start to="shell_1"/&gt;
      &lt;action name="shell_1"&gt;
          &lt;shell xmlns="uri:oozie:shell-action:0.3"&gt;
              &lt;job-tracker&gt;${resourceManager}&lt;/job-tracker&gt;
              &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
              &lt;configuration&gt;
                  &lt;property&gt;
                      &lt;name&gt;Group&lt;/name&gt;
                      &lt;value&gt;hadoop&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/configuration&gt;
              &lt;exec&gt;/user/ambari-qa/sample.sh&lt;/exec&gt;
              &lt;file&gt;/user/ambari-qa/sample.sh&lt;/file&gt;
          &lt;/shell&gt;
          &lt;ok to="end"/&gt;
          &lt;error to="kill"/&gt;
      &lt;/action&gt;
      &lt;kill name="kill"&gt;
          &lt;message&gt;${wf:errorMessage(wf:lastErrorNode())}&lt;/message&gt;
      &lt;/kill&gt;
      &lt;end name="end"/&gt;
  &lt;/workflow-app&gt;
  </code></pre>