oozie4.1.x 常用客户端命令

1.提交作业,作业进入PREP状态

oozie job -oozie http://localhost:11000/oozie -config job.properties -submit   job: 14-20090525161321-oozie-joe

2.执行已提交的作业

oozie job -oozie  http://localhost:11000/oozie -start 14-20090525161321-oozie-joe

3.直接运行作业

oozie job -oozie http://localhost:11000/oozie -config job.properties -run

4.挂起作业,挂起前状态(RUNNING , RUNNIINGWITHERROR or PREP状态)
workflow job will be in SUSPENDED status.

5.杀死作业

oozie job -oozie http://localhost:11000/oozie -kill 14-20090525161321-oozie-joe

6.改变作业参数,不能修改killed状态的作业

oozie job -oozie http://localhost:11000/oozie -change 14-20090525161321-oozie-joe -value endtime=2011-12-01T05:00Z;concurrency=100;2011-10-01T05:00Z

7.重新运行作业

oozie job -oozie http://localhost:11000/oozie -config job.properties -rerun 14-20090525161321-oozie-joe 000000-130817230824019-oozie-ceny-W
Rerunning a Coordinator Action or Multiple Actions       
oozie job -rerun <coord_Job_id> [-nocleanup] [-refresh] [-action 1, 3-4, 7-40] [-date 2009-01-01T01:00Z::2009-05-31T23:59Z, 2009-11-10T01:00Z, 2009-12-31T22:00Z] 

 (-action or -date is required to rerun.) 
Rerunning a Bundle Job       
oozie job -rerun <bundle_Job_id> [-nocleanup] [-refresh] [-coordinator c1, c3, c4] [-date 2009-01-01T01:00Z::2009-05-31T23:59Z, 2009-11-10T01:00Z, 2009-12-31T22:00Z]   

(-coordinator or -date is required to rerun.if neither -coordinator nor -date is given, the exception will be thrown.)

8.检查作业状态

oozie job -oozie http://localhost:11000/oozie -info 14-20090525161321-oozie-joe
oozie job -oozie http://localhost:11000/oozie -info 0000001-111219170928042-oozie-para-W@mr-node -verbose

9.查看日志

oozie job -oozie http://localhost:11000/oozie -log 14-20090525161321-oozie-joe      
oozie job -log <coord_job_id> [-action 1, 3-4, 7-40] (-action is optional.)

10.检查xml文件是否合规

oozie validate myApp/workflow.xml

12.提交MR作业

oozie mapreduce -oozie http://localhost:11000/oozie -config job.properties