帮组里用oozie启动shell的时候,发生了一个报错。
2019-09-19 14:24:43,647 WARN ActionStartXCommand:523 - SERVER[xxxx] USER[xxxx] GROUP[-] TOKEN[] APP[xxxx] JOB[0015122-190917141609001-oozie-hado-W] ACTION[0015122-190917141609001-oozie-hado-W@xxxx] Error starting action [xxxx]. ErrorType [ERROR], ErrorCode [JA008], Message [JA008: File does not exist: hdfs://mycluster1:8020/user/xxxx/xxxx/xxx/xxx/xxxx/xxxx.sh#xxxx.sh]
org.apache.oozie.action.ActionExecutorException: JA008: File does not exist: hdfs://mycluster1:8020/user/xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.sh#xxxx.sh
at org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:456)
第一时间是感觉yarn出现了问题,查看了相关的yarn任务,发现只有一个map操作,且显示success。
其实是这里oozie的日志不够清晰,这个报错跟oozie和yarn无关,全文是:-bash: ./xxxx.sh: /bin/bath:bad interpreter: No such file or directory,这是在执行./xxx.sh的时候的一个报错。同事把解释器写错了一个字母。