I were working with cassandra with no problem last hour ,but now I can't access to cassandra when I ran cqlsh
it gave me this:
Connection error: Could not connect to localhost:9160
So I tried this:
sudo service cassandra status
And it gave me this:
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities - XX:ThreadPriorityPolicy=42 -Xms1024M -Xmx1024M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
- could not access pidfile for Cassandra
what can I do to resolve this problem?
Thanks in advance,
The pid file is located at /var/run/cassandra.pid
. Check that it exists and that the root user has read/write permissions to it. Also make sure that root has rwx permissions to /var/run
.
As for your connection refused error, it is most likely caused by cassandra not running. Check the log files in /var/log/cassandra/*
for any exceptions.
You may forgot stop the cassandra before delete it.
You must remove the cassandra by purge
command and install it again.
Also check your java version that compatible with pre-requirements of the cassandra.(like cassandra 2.* needs java oracle 7.0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With