Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5657

Executors should not inherit environment variables from the agent.

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            gilbert Gilbert Song
            gilbert Gilbert Song
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: