When I try to start cassandra on ubuntu 12.04 (installed via Datastax's dsc20
package) as a service as follows :
$ sudo service cassandra start
it says
*could not access pidfile for Cassandra
& no other messages or anything in logs.
But when I try to run as a root user( sudo cassandra -f
) it just works properly & cassandra is started. While trying to debug I found that when trying to run as a non-root user I was getting these messages:
ERROR 17:48:08,432 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)
..
java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible.
Is there some problem with the packaging ? Not properly installed/ configured by package ??