As the cassandra user? (is your install from packages or tar?)
$ sudo -iu cassandra # you should now be the cassandra user $ cassandra -f -p /var/run/cassandra/cassandra.pid # not sure if -f also works with -p - might drop -f and look at # /var/log/cassandra/system.log -- Michael On 03/10/2014 10:38 AM, user 01 wrote:
Thanks Duncan. very helpful response indeed! Now I can run cassandra very properly in the foreground using*cassandra -f *but when I try to run cassandra as a service in ubuntu that fails. Initially I get the status as *running* but very soon it says* * could not access pidfile for Cassandra* On Mon, Mar 10, 2014 at 7:04 PM, Duncan Sands <duncan.sa...@gmail.com <mailto:duncan.sa...@gmail.com>> wrote: Hi user 01, On 10/03/14 13:11, user 01 wrote: I installed DSC 2.0.5 on ubuntu 12.04 with Oracle JRE 7 but dsc 2.0.5 does not start after installation. When I check the running status.. *$ sudo service cassandra status* it says ** could not access pidfile for Cassandra* & no other messages or anything in logs. This is happening with 2.0.5 but not with 2.0.4. Did anyone else came across this issue ? Any idea how to fix this ? this probably means that the Cassandra process exited. For example, if there is an incorrect value in cassandra.yaml then the process will start (so "sudo service cassandra start" will return a success code), but will then exit once it discovers the wrong value. I suggest you start Cassandra in the foreground (with -f IIRC), so you get all error output directly on your console. Ciao, Duncan.