Starting cassandra as a service does not work for 2.0.5, sudo cassandra -f works

前端 未结 2 1111
温柔的废话
温柔的废话 2021-01-06 22:12

When I try to start cassandra on ubuntu 12.04 (installed via Datastax\'s dsc20 package) as a service as follows :

$ sudo service cassandr

相关标签:
2条回答
  • 2021-01-06 22:45

    By default the cassandra service does not and should not run as root.

    My guess is you ran it in the foreground first, which automatically will create /var/lib/cassandra with root permissions instead of with the cassandra permissions. Either chown -R /var/lib/cassandra with the appropriate group and user or blow away the directory and try starting the service again.

    0 讨论(0)
  • 2021-01-06 22:56
    $ su cassandra
    

    then run

    $ service cassandra start
    

    It works for me.

    0 讨论(0)
提交回复
热议问题