Reply
New Contributor
Posts: 1
Registered: ‎08-30-2018

oozie.wf.action.notification.url in config-default.xml

 Our workflows are triggered with a job.properties file specified, however we're trying to do away with that, as sub-workflows (using the sub-workflow action) seem to only use config-default.xml.  Given that, we'd like to have our logging URL be called by the actions within the sub-workflows.  I'm not having any luck with having the url in config-default.xml.  I can't tell if it's a parsing problem with the ampersands in the URL, or if it's because that property only works when it's in a properties file.

 

The documentation seems to hint at this as well:

     If the oozie.wf.action.notification.url property is present in the workflow job properties when submitting the job...

 

Has anyone had luck with using this property in a config-default.xml file?

Nnr
New Contributor
Posts: 3
Registered: ‎12-11-2018

Re: oozie.wf.action.notification.url in config-default.xml

Hi, Please try with the below configuration in config-default.xml. Also, please keep the config-default.xml in the same place where workflow.xml is loacated (i.e. workspace)

 

<configuration>
<property>
<name>oozie.wf.workflow.notification.url</name>
<value>{serviceUrl}/v1/oozieNotification/jobUpdate?jobId=$jobId%26status=$status</value>
</property>
<property>
<name>oozie.wf.action.notification.url</name>
<value>{serviceUrl}//v1/oozieNotification/jobUpdate?jobId=$jobId%26status=$status</value>
</property>
</configuration>

 

Thanks