Alternatively, because the $HOST username is indirect, which would require
a runtime element to "export $LIBPROCESS_IP=$HOST", another alternative is
to fallback on Mesos-DNS, if that's part of the cluster deployment, setting
$LIBPROCESS_IP to the (a priori) Mesos-DNS entry corresponding to the
service.

On Sun, Apr 3, 2016 at 5:06 PM craig w <[email protected]> wrote:

> Hi, marathon sets the HOST env var. If it's not the ip address you can use
> getent with the value from HOST to figure it out.
> >However, in order for the frameworks to receive resource offers I need
> to set the LIBPROCESS_IP environment variable to the hosts IP address for
> the docker container running the frameworks.
>
> Hi, @Gmail. Could you provide more details about this?
>
> On Sun, Apr 3, 2016 at 10:40 PM, Rad Gruchalski <[email protected]>
> wrote:
>
>> Hi Gmail,
>>
>> AFAIK not. The only way to do so is setting up the env variable as you do
>> now.
>>
>> Kind regards,
>> Radek Gruchalski
>> [email protected] <[email protected]>
>> de.linkedin.com/in/radgruchalski/
>>
>>
>> *Confidentiality:*This communication is intended for the above-named
>> person and may be confidential and/or legally privileged.
>> If it has come to you in error you must take no action based on it, nor
>> must you copy or show it to anyone; please delete/destroy and inform the
>> sender immediately.
>>
>> On Sunday, 3 April 2016 at 16:09, Gmail wrote:
>>
>> I'm pretty new to mesos and marathon, and I'm running a couple of
>> frameworks with marathon (Kafka and elastic search). However, in order for
>> the frameworks to receive resource offers I need to set the LIBPROCESS_IP
>> environment variable to the hosts IP address for the docker container
>> running the frameworks. Currently I am working around me this by using a
>> constraint to hard wire the slave that the framework gets launched on, so
>> then I can put the slaves ip in the marathon json file.
>>
>> Obviously this is not ideal. Is there a better way to define the host ip
>> Inside the docker container?
>>
>> Sent from my iPad
>>
>>
>>
>
>
> --
> Best Regards,
> Haosdent Huang
>

Reply via email to