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/tas
This error is really ambiguous. Here are some issues that have helped me to solve this issue.
-If you are running oozie workflows on a kerberized cluster, make sure to authenticate by passing your Kerberos Keytab as a argument:
...
scriptPath.sh
scriptPath.sh
yourKeytabFilePath
...
-In your shell File (scriptPath.sh), make sure ro remove first line shell reference.
#!usr/bin/bash
indeed, if this shell reference isn't deployed on all data nodes, this can lead to this error code.