Mesos Master和Mesos代理是否需要root访问权限?

时间:2017-01-18 23:08:47

标签: mesos mesosphere

Mesos Master和Mesos代理是否需要root访问权限? Mesos master和Mesos代理的默认权限级别是多少?他们可以使用非root访问权限运行吗?

3 个答案:

答案 0 :(得分:1)

当我尝试启动没有root访问权限的mesos集群时,我在mesos slave中遇到了错误:

Log file created at: 2018/02/17 06:57:48
Running on machine: ubuntu
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0217 06:57:48.811517 46316 main.cpp:468] EXIT with status 1: Failed to initialize systemd: Failed to create systemd slice ‘mesos_executors.slice’: Failed to write systemd slice `/run/systemd/system/mesos_executors.slice`: Failed to open file ‘/run/systemd/system/mesos_executors.slice’: Permission denied

我的mesos集群由三个节点组成,所有从属主机都有这个错误。所以我在mesos master中启动了具有root访问权限的mesos集群。它奏效了。

答案 1 :(得分:1)

如果您不想为root提供根访问权限,并且没有提供的systemd支持,则可以与mesos-agent一起运行--no-systemd_enable_support

答案 2 :(得分:0)

没有, Mesos Master和Mesos代理不需要root访问权限。他们可以使用非root访问运行