FYI, from Mesos 1.0, the executors will no longer inherit environment
variables from the agent by default. If you have environment environment
variables that you want to pass in to executors, please use `--
executor_environment_variables` flag on the agent.

commit ce4b3056164a804bea52810173dbd7a418d12641
Author: Gilbert Song <songzihao1...@gmail.com>
Date:   Sun Jun 19 16:01:10 2016 -0700

    Forbid the executor to inherit from slave environment.

    Review: https://reviews.apache.org/r/44498/

- Jie

On Tue, Mar 8, 2016 at 11:33 AM, Gilbert Song <gilb...@mesosphere.io> wrote:

> Hi,
>
> TL;DR Executors will no longer inherit environment variables from the agent
> by default in 0.30.
>
> Currently, executors are inheriting environment variables form the agent in
> mesos containerizer by default. This is an unfortunate legacy behavior and
> is insecure. If you do have environment variables that you want to pass to
> the executors, you can set it explicitly by using the
> `--executor_environment_variables` agent flag.
>
> Starting from 0.30, we will no longer allow executors to inherit
> environment variables from the agent. In other words,
> `--executor_environment_variables` will be set to “{}” by default. If you
> do depend on the original behavior, please set
> `--executor_environment_variables` flag explicitly.
>
> Let us know if you have any comments or concerns.
>
> Thanks,
> Gilbert
>

Reply via email to