You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Boris Shulman (JIRA)" <ji...@apache.org> on 2016/08/15 22:30:21 UTC

[jira] [Issue Comment Deleted] (REEF-1529) Fixing reef-webserver for multi runtime

     [ https://issues.apache.org/jira/browse/REEF-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Shulman updated REEF-1529:
--------------------------------
    Comment: was deleted

(was: [~markus.weimer] Do you have any input on the removal of TrackingURLProvider , and using HttpTrackingURLProvider  directly in the code (as we don't have any other implementations and I don't see any reasons having any other implementations). I want to deal with not bound http server by creating a Null implementation and testing for the actual httpserver type.)

> Fixing reef-webserver for multi runtime
> ---------------------------------------
>
>                 Key: REEF-1529
>                 URL: https://issues.apache.org/jira/browse/REEF-1529
>             Project: REEF
>          Issue Type: Improvement
>            Reporter: Boris Shulman
>            Assignee: Boris Shulman
>
> reef-webserver functionality is broken for multiruntime on yarn. The problem is that the http-server does not exist in the injector that is used for the actual runtime implementation.
> The proposed solution is to check if http server is binded in the original injector and copy it to the aftual runitme injector:
> Add in RuntimesHost.initializeInjector method:
> org.apache.reef.webserver.HttpServer httpServer = null;
>     try{
>       httpServer = this.originalInjector.getInstance(org.apache.reef
>               .webserver
>               .HttpServer.class);
>     }    catch(org.apache.reef.tang.exceptions.InjectionException e) {
>     }
>     if(httpServer != null){
>       runtimeInjector.bindVolatileInstance(
>               org.apache.reef.webserver.HttpServer.class,
>               httpServer);
>     }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)