注意oozie时区的设置与系统保持一致
1.查看所有普通任务:
oozie jobs -oozie http://node63.xdata:11000/oozie
结果
Job ID App Name Status User Group Started Ended
------------------------------------------------------------------------------------------------------------------------------------
0000213-200929154928218-oozie-oozi-W _73ce6ec18d5ac302d2074d04ad10a8dfKILLED hive - 2020-10-11 03:55 GMT 2020-10-11 04:05 GMT
------------------------------------------------------------------------------------------------------------------------------------
0000212-200929154928218-oozie-oozi-W _62c04765248e687398b77724d9f06843KILLED hive - 2020-10-10 17:50 GMT 2020-10-10 18:26 GMT
------------------------------------------------------------------------------------------------------------------------------------
0000211-200929154928218-oozie-oozi-W _079accfd14127fa58117665a43580a8bKILLED hive - 2020-10-10 17:50 GMT 2020-10-10 17:55 GMT
------------------------------------------------------------------------------------------------------------------------------------
0000210-200929154928218-oozie-oozi-W _85f1c790780f35a4f3d83c956fb01712SUCCEEDED hive - 2020-10-10 14:50 GMT 2020-10-10 15:53 GMT
2.查看定时任务:
oozie jobs -oozie http://node63.xdata:11000/oozie -jobtype coordinator
结果
Job ID App Name Status Freq Unit Started Next Materialized
------------------------------------------------------------------------------------------------------------------------------------
0000156-200929154928218-oozie-oozi-C _62c04765248e687398b77724d9f06843RUNNING 50 1 * * ?CRON 2020-10-04 01:26 GMT 2020-10-11 17:50 GMT
------------------------------------------------------------------------------------------------------------------------------------
0000143-200929154928218-oozie-oozi-C _6bc2e6a37c1a6340b81e79662dbd924cRUNNING 50 16 * * ?CRON 2020-10-03 07:01 GMT 2020-10-11 08:50 GMT
------------------------------------------------------------------------------------------------------------------------------------
0000141-200929154928218-oozie-oozi-C _93510fe92feaf71eb51df0c70534b10cRUNNING 00 21 * * ?CRON 2020-10-03 01:10 GMT 2020-10-11 13:00 GMT
3. 其他常用的命令
校验配置文件
oozie validate -ooziehttp://node63.xdata:11000/oozie /export/servers/oozie/test/coordinator.xml
运行job
oozie job -oozie http://node63.xdata:11000/oozie -config /export/servers/oozie/test/coordinator.properties -run
查看信息
oozie job -oozie http://node63.xdata:11000/oozie -info 0000029-191027171933033-oozie-root-C
查看日志
oozie job -oozie http://node63.xdata:11000/oozie -log 0000064-190923225831711-oozie-root-C
Kill任务
oozie job -oozie http://node63.xdata:11000/oozie -kill 0000064-190923225831711-oozie-root-C
查看所有普通任务
oozie jobs
查看定时任务
oozie jobs -jobtype coordinator -oozie http://node63.xdata:11000/oozie