当一个oozie job运行失败后可以使用rerun参数重跑job
由于我的oozie版本比较旧,文档中是这样说的
- oozie.wf.application.path
- oozie.wf.rerun.skip.nodes
- Above two are mandatory configs.
- Skip nodes are comma separated list of action names. They can be any action nodes including decision node.
网上找了一圈,没发现有用的资料,最后由高人指点,原来是将oozie job管理界面中的Job Configuration内容拷贝到新建的xml中间中
然后在这个xml中新加一个property,如下
<property>
<name>oozie.wf.rerun.skip.nodes</name>
<value>action1,action2</value>
</property>
value为需要跳过的action名
rerun 命令:oozie job -rerun job_id -config rerun.xml
依旧报错:Error: E0301 : E0301: Invalid resource [hdfs://localhost/workflow.xml]
找到这篇blog点击打开链接
此博主说是因为wf的配置文件和coord的配置文件不能同时存在,oozie中的代码
protected static void ValidateAppPath(String wfPath, String coordPath) throws XServletException {
if (wfPath != null && coordPath != null) {
throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ErrorCode.E0301, wfPath, coordPath);
}
else {
if (wfPath == null && coordPath == null) {
throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ErrorCode.E0302);
}
}
}
按照博主所说删掉xml中的oozie.wf.application.path,运行后依然报错,找不到workflow.xml
workflow.xml中存放的是我要运行的工作流,怎么可以删除呢,怀疑是否是因为此博主的job是定时工作流,所以把工作流配置参数都写在了coord.xml中
而我的工作流还是在workflow.xml,所以我应该删除oozie.coord.application.path
再次运行成功!