On 03/10/2014 11:56 AM, user 01 wrote:
When running as root everything works fine, however when I run your
commands a normal user, here is what happens..
user01@server1:~$ sudo -iu cassandra
Yeah, you never actually became the cassandra user. Of course, root
works ;)
user01@server1:~$ cassandra -f -p /var/run/cassandra/cassandra.pid
^^^^^^ user01
So, the rest is expected, since you have no permissions.
ERROR 16:46:09,355 Exception encountered during startup
java.lang.AssertionError: Directory /var/lib/cassandra/data is
not accessible.
..
java.io.FileNotFoundException: /var/log/cassandra/system.log
(Permission denied)
...
Here are the folder permissions..
user01@server1:~$ ls /var/lib/cassandra -lh
total 12K
drwxr-xr-x 2 cassandra cassandra 4.0K Mar 10 16:43 commitlog
drwxr-xr-x 4 cassandra cassandra 4.0K Mar 10 14:02 data
drwxr-xr-x 2 cassandra cassandra 4.0K Mar 10 11:34 saved_caches
maybe:
$ sudo su - cassandra
Make sure you are actually the cassandra user, then try again?
--
Michael