Search code examples
oozieoozie-coordinator

Oozie launch script after Coordinator Start


I'm looking for a way to launch a custom script when a coordinator start.

So when a coordinator start the running of a job, I'd need to make for example an api call to a third party service.

Is there a way or a workaround to make this possible?

Thank you


Solution

  • Solution found: the key is the property oozie.wf.workflow.notification.url

    add in the workflow configuration file, the following parameter

    <property>
    <name>oozie.wf.workflow.notification.url</name>
    <value>http://server_name:8080/oozieNotification/jobUpdate?jobId=$jobId%26status=$status</value>
    

    and create a webservice listening on this url