GitHub user susanxhuynh opened a pull request:

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

    JIRA ticket:
    ## 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 ``.
    This PR adds support to pass in network labels to CNI plugins via a new 
config option ``. 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:
    ## How was this patch tested?
    Unit tests, for both driver and executor tasks.
    Manual integration test to submit a job with the 
`` 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 sh-mesos-cni-labels

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

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 <>
Date:   2017-08-10T18:19:51Z

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


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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to