DCOS Cassandra - 使用非root用户运行cassandraDemon

时间:2017-03-06 12:35:14

标签: cassandra-2.1 dcos

我想在非root用户的dcos中运行cassandraDemon。就像在dcos上的cassandra安装期间一样,我想将service.user更改为。 我们怎么做到这一点?

1 个答案:

答案 0 :(得分:0)

假设代理上存在用户core,您可以这样做:

$ cat options.json
{
  "service": {
    "user": "core"
  }
}

$ dcos package install --options=options.json cassandra
DC/OS Cassandra Service default configuration requires 3 nodes each with 1.5 CPU shares, 5376MB of memory and 11264MB of disk for running Cassandra Nodes. And, 1 node with 0.5 CPU shares, 2048MB of     memory for running the service scheduler.
Continue installing? [yes/no] yes
Installing Marathon app for package [cassandra] version [1.0.25-3.0.10]
Installing CLI subcommand for package [cassandra] version [1.0.25-3.0.10]
New command available: dcos cassandra
DC/OS Apache Cassandra has been successfully installed!

    Documentation: https://docs.mesosphere.com/current/usage/service-guides/cassandra/
    Issues: https://dcosjira.atlassian.net/projects/CASSANDRA/issues