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


when try start cassandra on ubuntu 12.04 (installed via datastax's dsc20 package) service follows :

$ sudo service cassandra start

it says

*could not access pidfile cassandra

& no other messages or in logs.

but when try run root user( sudo cassandra -f) works & cassandra started. while trying debug found when trying run as non-root user getting these messages:

error 17:48:08,432 exception encountered during startup java.lang.assertionerror: directory /var/lib/cassandra/data not accessible. .. java.io.filenotfoundexception: /var/log/cassandra/system.log (permission denied) .. java.lang.assertionerror: directory /var/lib/cassandra/data not accessible. 

is there problem packaging ? not installed/ configured package ??

by default cassandra service not , should not run root.

my guess ran in foreground first, automatically create /var/lib/cassandra root permissions instead of cassandra permissions. either chown -r /var/lib/cassandra appropriate group , user or blow away directory , try starting service again.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -