Not able to execute shell action in ozzie

Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], main() threw exception, Cannot run program “test.sh” (in directory “/hadoop/yarn/local/usercache/chaitya4129753/appcache/application_1507459432053_1170/container_e114_1507459432053_1170_01_000002”): error=2, No such file or directory

Hi Chaitya,

Could you help me understand the steps that you are following?

I just tested the same it worked fine. Here are the screenshots.

Please note that I did the following:

  1. Created the shell script oozie_test.sh and uploaded in HDFS
  2. Made it executable with command: hadoop fs -chmod 755 oozie_test.sh
  3. In the Hue Oozie worflow editor, I dragged and dropped the shell widget
  4. In the shell command box, I selected my script using browse button “…” and clicked on “ADD”
  5. After that in the “files” text box, I selected the same script again.

I hope that helps.

1 Like