Oozie command to rerun workflow with skip nodes not working

Vishal Joshi picture Vishal Joshi · Aug 10, 2015 · Viewed 7.6k times · Source

There is a couple of options while re-running a workflow via Oozie command line.

  1. oozie.wf.rerun.failnodes
  2. oozie.wf.rerun.skip.nodes

Option 1 works fine, however, while re-running workflow with option 2, it throws error E0404.

oozie job -oozie http://<url>/oozie -Doozie.wf.rerun.skip.nodes=node1,node2 -rerun WFID

Error: E0404 : E0404: Only one of the properties are allowed [oozie.wf.rerun.skip.nodes OR oozie.wf.rerun.failnodes]

However, below works fine.

oozie job -oozie http://<url>/oozie -Doozie.wf.rerun.failnodes=true -rerun WFID

Answer

Deepak Janyavula picture Deepak Janyavula · Sep 1, 2016

Everytime an oozie job is executed in a rerun mode, it will try to reuse the previous run's conifg file. you can however pass additional properties to it using -D option and thats how we pass oozie.wf.rerun.failnodes and oozie.wf.rerun.skip.nodes.

If you have execueted your job in rerun mode already once with oozie.wf.rerun.failnodes=true once, then in your next run you cannot use

oozie job -oozie http://<url>/oozie -Doozie.wf.rerun.skip.nodes=node1,node2 -rerun WFID

because when its trying to reuse config file, oozie.wf.rerun.failnodes property is already existing in its properties and that's when oozie tries to throw an error like you have faced.