You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Oeg Bizz <oe...@yahoo.com> on 2017/07/10 11:48:22 UTC

Libraries

All,    I am continuing developing a Java framework using the Java API rather than the HTTP API (long story here).  The ultimate goal is to run the framework on its own container, but in the meantime I am constantly making updates to it.  So, I would like to be able to run the framework on my Centos 7 node (no containers) until is ready.  I have a mesos-master and mesos-slave running on different containers.  How can I run the framework WITHOUT installing mesos on my computer?  I want to use the libraries contained in the mesos docker containers, is that possible?  I tried mounting a volume and copying the libmesos from the container to that volume and  set the MESOS_NATIVE_JAVA_LIBRARY accordingly, but is complaining about not finding the libsvn_delta library.  Is there a list somewhere of all the .so files I need to expose?  Is what I am trying to do absurd and I should just installed Mesos?   I know installing Mesos is the easy answer, but it will be nice to run mesos on containers rather than on the computer.  Thanks for your help,

Oscar

Re: Libraries

Posted by Hendrik Haddorp <he...@gmx.net>.
Hi,

I build a small proxy for that. The required Mesos API is quite small so 
I just created my own SchedulerDriver implementation and send then to a 
proxy component that is running in a docker container. In there I can 
easily have the native dependency. So a proxy scheduler is running in 
there and forwards the calls coming from Mesos to the proxy 
SchedulerDriver. For the communication I used websockets. As the API 
uses proto buffers you can quite easily send them over the wire. This 
way I can run my code even on Windows.

regards,
Hendrik

On 10.07.2017 13:48, Oeg Bizz wrote:
> All,
>     I am continuing developing a Java framework using the Java API 
> rather than the HTTP API (long story here).  The ultimate goal is to 
> run the framework on its own container, but in the meantime I am 
> constantly making updates to it.  So, I would like to be able to run 
> the framework on my Centos 7 node (no containers) until is ready.  I 
> have a mesos-master and mesos-slave running on different containers. 
>  How can I run the framework WITHOUT installing mesos on my computer? 
>  I want to use the libraries contained in the mesos docker containers, 
> is that possible?  I tried mounting a volume and copying the libmesos 
> from the container to that volume and  set the 
> MESOS_NATIVE_JAVA_LIBRARY accordingly, but is complaining about not 
> finding the libsvn_delta library.  Is there a list somewhere of all 
> the .so files I need to expose?  Is what I am trying to do absurd and 
> I should just installed Mesos?   I know installing Mesos is the easy 
> answer, but it will be nice to run mesos on containers rather than on 
> the computer.  Thanks for your help,
>
> Oscar


Re: Libraries

Posted by Olivier Sallou <ol...@irisa.fr>.
----- Mail original -----

> De: "Oeg Bizz" <oe...@yahoo.com>
> À: "User" <us...@mesos.apache.org>
> Envoyé: Lundi 10 Juillet 2017 13:48:22
> Objet: Libraries

> All,
> I am continuing developing a Java framework using the Java API rather than
> the HTTP API (long story here). The ultimate goal is to run the framework on
> its own container, but in the meantime I am constantly making updates to it.
> So, I would like to be able to run the framework on my Centos 7 node (no
> containers) until is ready. I have a mesos-master and mesos-slave running on
> different containers. How can I run the framework WITHOUT installing mesos
> on my computer? I want to use the libraries contained in the mesos docker
> containers, is that possible? I tried mounting a volume and copying the
> libmesos from the container to that volume and set the
> MESOS_NATIVE_JAVA_LIBRARY accordingly, but is complaining about not finding
> the libsvn_delta library. Is there a list somewhere of all the .so files I
> need to expose? Is what I am trying to do absurd and I should just installed
> Mesos? I know installing Mesos is the easy answer, but it will be nice to
> run mesos on containers rather than on the computer. Thanks for your help,f

I faced some issue with Python, and only way was to install mesos to get python libs which are linked to C libraries. 
So I switched to HTTP API, which should be the default as other libs may not benefit of future features..... 

Olivier 

> Oscar