Mesos 取消设置一些环境变量

Mesos unsets some environment variables

我的 mesos 作业 运行 没有设置 LANG 环境变量。我已验证从站设置了变量,因此 mesos 作业必须取消设置变量,但我不知道这是在哪里完成的。

我可以为每个作业显式设置环境变量,但我希望将其设置为全局变量。

尝试使用代理标志 --executor_environment_variables

来自代理命令行帮助:

JSON object representing the environment variables that should be passed to the executor, and thus subsequently task(s). By default this flag is none.

Users have to define executor environment explicitly.

示例: mesos-slave --executor_environment_variables='{ "LANG": "C" }' [...]