GitHub user susanxhuynh opened a pull request:

    https://github.com/apache/spark/pull/18910

    [SPARK-21694][MESOS] Support Mesos CNI network labels

    JIRA ticket: https://issues.apache.org/jira/browse/SPARK-21694
    
    ## What changes were proposed in this pull request?
    
    Spark already supports launching containers attached to a given CNI network 
by specifying it via the config `spark.mesos.network.name`.
    
    This PR adds support to pass in network labels to CNI plugins via a new 
config option `spark.mesos.network.labels`. These network labels are key-value 
pairs that are set in the `NetworkInfo` of both the driver and executor tasks. 
More details in the related Mesos documentation:  
http://mesos.apache.org/documentation/latest/cni/#mesos-meta-data-to-cni-plugins
    
    ## How was this patch tested?
    
    Unit tests, for both driver and executor tasks.
    Manual integration test to submit a job with the 
`spark.mesos.network.labels` option, hit the mesos/state.json endpoint, and 
check that the labels are set in the driver and executor tasks.
    
    @ArtRand @skonto 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mesosphere/spark sh-mesos-cni-labels

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18910.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18910
    
----
commit 255e5195a414f0f9e609cb579a2e8fdfea200be1
Author: Susan X. Huynh <xhu...@mesosphere.com>
Date:   2017-08-10T18:19:51Z

    [SPARK-21694][MESOS] Allow the user to pass network labels to CNI plugins 
via

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to