For a service although a pid file exists, but still when attempting to start service, it fails saying:
$ sudo service cassandra start
* could not access pidfile for Cassandra
I verified folder permissions under /var/run
(whose owner is root) and the subfolder cassandra is owned by cassandra user, but still the service cannot access pid file even though I verified that pid file exists. (Also pid is allocated). So why does it say it can't access pidfile?
And running cassandra
as a standalone process just works, but not just using service cassandra start
$ sudo ls -l /var/run/cassandra
total 4
-rw-r--r-- 1 cassandra cassandra 4 Mar 18 07:33 cassandra.pid
$ sudo su
# ls -ld /var/run/cassandra
dr--r----- 2 cassandra cassandra 60 Mar 18 07:38 /var/run/cassandra
How do I make this work using sudo service cassandra start
?
sudo apt-get install cassandra dsc20
sudo dpkg-reconfigure cassandra