[ 
https://issues.apache.org/jira/browse/OOZIE-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948926#comment-15948926
 ] 

Attila Sasvari commented on OOZIE-2850:
---------------------------------------

OOZIE-2648 removed the call to  {{injectCallback(context, actionConf);}} in 
{{JavaActionExecutor}}, see [this | 
https://github.com/apache/oozie/blob/88fc6e554ca7e73dba89d40aa87b97bfb5a3e881/core/src/main/java/org/apache/oozie/action/hadoop/JavaActionExecutor.java#L1054],
 this is probably we get no notifications when an action finishes. 
[~abhishekbafna] can you agree that's why a shell action does not send back 
notification to the Oozie server when it finished? 

In the worfklow log you can see
{code}
2017-03-30 13:53:32,203  INFO WorkflowNotificationXCommand:520 - SERVER[] 
USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000004-170330133327713-oozie-asas-W] 
ACTION[0000004-170330133327713-oozie-asas-W@shell-node] No Notification URL is 
defined. Therefore nothing to notify for job 
0000004-170330133327713-oozie-asas-W@shell-node
{code}

Now I manually invoke 
http://localhost:11000/oozie/callback?id=0000005-170330133327713-oozie-asas-W@shell-node&status=SUCCEEDED
 to notify Oozie.

> Fix default callback notifications
> ----------------------------------
>
>                 Key: OOZIE-2850
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2850
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Attila Sasvari
>            Priority: Trivial
>
> Currently oozie.service.CallbackService.base.url  in oozie-default.xml is set 
> to use 
> [oozie.base.url/callback| 
> https://github.com/apache/oozie/blob/7c404ad0ea4c61e90e8c86015de25ef196168c29/core/src/main/resources/oozie-default.xml#L1639]
> which defaults to [ http://localhost:8080/oozie | 
> https://github.com/apache/oozie/blob/7c404ad0ea4c61e90e8c86015de25ef196168c29/core/src/main/resources/oozie-default.xml#L105].
> As a result, actions finished are not detected by default. (Jetty listens on 
> HTTP port 11000, see [port in oozie-default.xml | 
> https://github.com/apache/oozie/blob/7c404ad0ea4c61e90e8c86015de25ef196168c29/core/src/main/resources/oozie-default.xml#L2535])
> {{oozie.http.hostname}} and {{oozie.http.port}} could be used in 
> {{oozie.base.url}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to