Found this thread that talked about it to help understand it better:

https://mail-archives.apache.org/mod_mbox/mesos-user/201507.mbox/%3ccajq68qf9pejgnwomasm2dqchyaxpcaovnfkfgggxxpzj2jo...@mail.gmail.com%3E

>
> When you run Spark on Mesos it needs to run
>
> spark driver
> mesos scheduler
>
> and both need to be visible to outside world on public iface IP
>
> you need to tell Spark and Mesos on which interface to bind - by default
> they resolve node hostname to ip - this is loopback address in your case
>
> Possible solutions - on slave node with public IP 192.168.56.50
>
> 1. Set
>
>    export LIBPROCESS_IP=192.168.56.50
>    export SPARK_LOCAL_IP=192.168.56.50
>
> 2. Ensure your hostname resolves to public iface IP - (for testing) edit
> /etc/hosts to resolve your domain name to 192.168.56.50
> 3. Set correct hostname/ip in mesos configuration - see Nikolaos answer
>

Cheers,
Aaron


On Mon, Nov 16, 2015 at 9:37 PM, Jo Voordeckers
<jo.voordeck...@gmail.com> wrote:
> I've seen this issue when the mesos cluster couldn't figure out my IP
> address correctly, have you tried setting the ENV var with your IP address
> when launching spark or mesos cluster dispatcher like:
>
>  LIBPROCESS_IP="172.16.0.180"
>
>
> - Jo Voordeckers
>
>
> On Sun, Nov 15, 2015 at 6:59 PM, Jong Wook Kim <jongw...@nyu.edu> wrote:
>>
>> I'm having problem connecting my spark app to a Mesos cluster; any help on
>> the below question would be appreciated.
>>
>>
>> http://stackoverflow.com/questions/33727154/spark-shell-connecting-to-mesos-stuck-at-sched-cpp
>>
>> Thanks,
>> Jong Wook
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to