Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running shell script from oozie through Hue

I am invoking a bash shell script using oozie editor in Hue.

I used the shell action in the workflow and tried below different options in shell command:

  1. Uploaded the shell script using 'choose a file'
  2. Gave local directory path where shell script is present
  3. Gave HDFS path where shell script is present

But all these options gave following error:

Cannot run program "sec_test_oozie.sh" (in directory "/data/hadoop/yarn/local/usercache/user/appcache/application_1399542362142_0086/container_1399542362142_0086_01_000002"): java.io.IOException: error=2, No such file or directory

How should I give the shell script execution command? Where the shell script file should be residing?

like image 959
Sourabh Potnis Avatar asked May 13 '14 09:05

Sourabh Potnis


1 Answers

You need add file "sec_test_oozie.sh" in oozie shell step. In add files

like image 72
SergioRG Avatar answered Sep 21 '22 14:09

SergioRG