Friday, 15 August 2014

Rerun Failed Oozie Job

The failed oozie job can be rerun in either Hue or command line.

$oozie job -oozie http://localhost:8080/oozie -config job.properties -rerun 14-20090525161321-oozie-job

Setup oozie.wf.rerun.failnodes=true in coordinator.properties file.


For Hue,

The rerun job will start from the failed action, which will still in the configuration as failure time,e.g. currentDate.

So rerun a failed job will continue to process data in the failure date.



For command line,

Since new job.properties is provided. The variable e.g.'currentDate' will refer to the rerun date, instead of the failure date. We need manually change the date variable to the failure date.




Reference:

https://oozie.apache.org/docs/3.1.3-incubating/DG_CommandLineTool.html#Rerunning_a_Workflow_Job



No comments:

Post a Comment