Running shell script with Oozie

后端 未结 9 1305
北荒
北荒 2021-02-13 15:25

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

9条回答
  •  花落未央
    2021-02-13 16:11

    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.

提交回复
热议问题