Skip to content
Snippets Groups Projects
  • Philipp Hoffmann's avatar
    978cd5f1
    [SPARK-15271][MESOS] Allow force pulling executor docker images · 978cd5f1
    Philipp Hoffmann authored
    ## What changes were proposed in this pull request?
    
    Mesos agents by default will not pull docker images which are cached
    locally already. In order to run Spark executors from mutable tags like
    `:latest` this commit introduces a Spark setting
    `spark.mesos.executor.docker.forcePullImage`. Setting this flag to
    true will tell the Mesos agent to force pull the docker image (default is `false` which is consistent with the previous
    implementation and Mesos' default
    behaviour).
    
    ## How was this patch tested?
    
    I ran a sample application including this change on a Mesos cluster and verified the correct behaviour for both, with and without, force pulling the executor image. As expected the image is being force pulled if the flag is set.
    
    Author: Philipp Hoffmann <mail@philipphoffmann.de>
    
    Closes #13051 from philipphoffmann/force-pull-image.
    978cd5f1
    History
    [SPARK-15271][MESOS] Allow force pulling executor docker images
    Philipp Hoffmann authored
    ## What changes were proposed in this pull request?
    
    Mesos agents by default will not pull docker images which are cached
    locally already. In order to run Spark executors from mutable tags like
    `:latest` this commit introduces a Spark setting
    `spark.mesos.executor.docker.forcePullImage`. Setting this flag to
    true will tell the Mesos agent to force pull the docker image (default is `false` which is consistent with the previous
    implementation and Mesos' default
    behaviour).
    
    ## How was this patch tested?
    
    I ran a sample application including this change on a Mesos cluster and verified the correct behaviour for both, with and without, force pulling the executor image. As expected the image is being force pulled if the flag is set.
    
    Author: Philipp Hoffmann <mail@philipphoffmann.de>
    
    Closes #13051 from philipphoffmann/force-pull-image.