How do I stop Coordinator Oozi?
I was managed by an Oozie coordinator who starts the workflow every hour. I don't have his ID and when I run the command oozie jobs -oozie http://localhost:11000/oozie
it only shows me work orders and there is no coordinator. I would like to stop this coordinator from further processing, how can I do this?
source to share
First advice to avoid defining oozie url in every command
export OOZIE_URL=http://localhost:11000/oozie
You can specify a list of coordinators
oozie jobs -jobtype coordinator -filter status=RUNNING
This will return a list displaying the coordinator ID <coord_id>
in the first column.
Please note that you must have the appropriate rights to run the following commands.
Then you can pause the coordinator
oozie job -suspend `<coord_id>`
And resume it.
oozie job -resume <coord_id>
But you often have to kill him
oozie job -kill <coord_id>
and reinstall it ...
oozie job -config job.properties -run
source to share
su - {username} -c 'oozie job -oozie http://localhost:11000/oozie -kill {Workflow External Id or coordinator external Id}'
To run this command, you need to be logged into your oozie cluster, or you can also start from your local machine, for which you need to replace localhost with the address of the window where oozie is running. Thanks to
source to share