Project: mesos
Issue MESOS-5657: Executors should not inherit environment variables from the agent.
Currently executors are inheriting environment variables form the slave in mesos containerizer. This is problematic, because of two reasons: 1. When we use docker images (such as `mongo`) in unified containerizer, duplicated environment variables inherited from the slave lead to initialization failures, because LANG and/or LC_* environment variables are not set correctly. 2. When we are looking at the environment variables from the executor tasks, there are pages of environment variables listed, which is redundant and dangerous. Depending on the reasons above, we propose that no longer allow executors to inherit environment variables from the slave. Instead, users should specify all environment variables they need by setting the slave flag `--executor_environment_variables` as a JSON format.
Story points: 3