Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running shell script with Oozie

Tags:

oozie

I am trying to run a sh script through Oozie, but I am facing a problem:

Cannot run program "script.sh" (in directory "/mapred/local/taskTracker/dell/jobcache/job_201312061003_0001/attempt_201312061003_0001_m_000000_0/work"): java.io.IOException: error=2, No such file or directory.

Please help me with necessary steps.

like image 943
user3072994 Avatar asked Dec 06 '13 04:12

user3072994


1 Answers

I had this same issue because of something really silly. I added a shell block in the workflow, then I selected the corresponding sendMail.sh, but I forgot to add the file sendMail.sh in FILE +.

enter image description here

like image 97
Ignacio Alorre Avatar answered Oct 23 '22 18:10

Ignacio Alorre