That's a good point. I hadn't considered the locality implications of CNI
yet.  I think tasks are placed based on the hostname reported by the
executor, which in a CNI container will be different than the
HDFS/Cassandra hostname.  I'm not aware of anyone running Spark+CNI in prod
yet, either.

However, locality in Mesos isn't great right now anyway.  Executors are
placed w/o regard to locality.  Locality is only taken into account when
tasks are assigned to executors.  So if you get a locality-poor executor
placement, you'll also have locality poor task placement.  It could be
better.

On Thu, Jan 12, 2017 at 7:55 AM, vincent gromakowski <
[email protected]> wrote:

> Hi all,
> Does anyone have experience running Spark on Mesos with CNI (ip per
> container) ?
> How would Spark use IP or hostname for data locality with backend
> framework like HDFS or Cassandra ?
>
> V
>



-- 
Michael Gummelt
Software Engineer
Mesosphere

Reply via email to