arttuladhar
8/9/2017 - 5:08 PM

Oozie CLI Command Lines

Oozie CLI Command Lines

Oozie commands

Run the workflow/coordinator:

oozie job -config ${property_file_name} -run

Example:

oozie job -config newtonpublishLoader.properties -run

To know the coordinator id for a job:

oozie jobs --oozie http://bigredoozie.target.com:11000/oozie -filter name=${coordinator_name} -jobtype  coordinator
oozie jobs --oozie http://bigredoozie.target.com:11000/oozie -filter name=tpa_mkdn_tbl_grpLoader_COORDINATOR -jobtype  coordinator

To know the workflow ids for a given coordinator:

oozie job -info ${coordinator_id} -allruns
oozie job -info 0017964-160420173116398-oozie-oozi-C -allruns 

To kill the coordinator:

oozie job -kill ${coordinator_id}

Example:

oozie job -kill 0017964-160420173116398-oozie-oozi-C