Vishal Joshi
Vishal Joshi

Reputation: 171

Oozie command to rerun workflow with skip nodes not working

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

Upvotes: 8

Views: 11411

Answers (2)

siva
siva

Reputation: 11

you could start the workflow from the beginning by giving oozie.wf.rerun.failnodes=false property...thats what i do when i reran a job already, this is similar to skip node oozie.wf.rerun.skip.nodes=, but we cant skip anything

Upvotes: 1

Deepak Janyavula
Deepak Janyavula

Reputation: 368

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.

Upvotes: 9

Related Questions