빅데이터/oozie
[oozie] 우지 작업 리런 커맨드
hs_seo
2018. 11. 16. 11:01
우지에서 작업중 코디네이터, 워크플로우에서 오류가 발생하면 작업을 새로 걸지 않고, 리런 커맨드를 이용하여 재작업 할 수 있습니다.
코디네이터 리런
$oozie job -rerun <coord_Job_id> [-nocleanup] [-refresh] [-action 1, 3-4, 7-40] (-action or -date is required to rerun.) [-date 2009-01-01T01:00Z::2009-05-31T23:59Z, 2009-11-10T01:00Z, 2009-12-31T22:00Z] (if neither -action nor -date is given, the exception will be thrown.)
# 3번 액션 재작업
oozie job -rerun [coord-id] -action 3
# 3~10번 까지의 액션 재작업
oozie job -rerun [coord-id] -action 3-10
# date 기준으로 2009-01-01 01시 작업 부터 2009-05-31 23시 작업 까지 재작업
oozie job -rerun [coord-id] -date 2009-01-01T01:00Z::2009-05-31T23:59Z
-noclenaup 옵션은 재작업시 output-event 처리한 것을 재작업 하지 않습니다.
-refresh 옵션은 input-event 를 다시 체크 합니다.
https://oozie.apache.org/docs/4.2.0/DG_CoordinatorRerun.html
워크플로우 리런
$ oozie job -oozie http://localhost:11000/oozie -rerun 14-20090525161321-oozie-joe -Doozie.wf.rerun.skip.nodes=<>
# 워크플로우를 재작업
oozie job -rerun [wf-id]
# 워크플로우의 액션 중에서 에러가 발생한 작업부터 재작업 진행
-Doozie.wf.rerun.failnodes=true or false
# A, B, C 액션은 재작업 하지 않고 스킵
-Doozie.wf.rerun.skip.nodes=A,B,C
https://oozie.apache.org/docs/4.2.0/DG_WorkflowReRun.html
반응형