How to configure access permissions for Cassandra on Linux Ubuntu

前端 未结 2 1728
说谎
说谎 2021-02-14 21:22

Thank-you for reading this. I am stuck at step three on this tutorial pertaining to installing Cassandra: http://wiki.apache.org/cassandra/GettingStarted#Step_3:_Start_Cassandra

相关标签:
2条回答
  • 2021-02-14 21:55

    I found a solution! I ran sudo -u cassandra /usr/sbin/cassandra -f and then ran into problems with the commitlog directory Phact mentions in his answer. I then ran Phact's recursive chown command, sudo chown -R cassandra:cassandra /var/lib/cassandra/commitlog and the Cassandra server started up correctly just as it would if I was running the program as the root user. :D :D :D

    0 讨论(0)
  • 2021-02-14 22:05

    Give the user you want permissions to the data and commitlog dirs.

    sudo chown -R cassandra:cassandra /var/lib/cassandra/data
    
    
    sudo chown -R cassandra:cassandra /var/lib/cassandra/commitlog
    
    0 讨论(0)
提交回复
热议问题