I'm trying to install Cassandra 3.4 on 64 bit ubuntu 14.04. I followed the DataStax instructions
Everything seems to be going alright, but when checking if cassandra is up with nodetool status
I get:
vagrant@vagrant-ubuntu-trusty-64:~$ nodetool status
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'.
Is there something missing in the instruction?
You need to check log files to find the errors.
use
sudo find / -name "cassandra.log"
and sudo find / -name "system.log"
to find what errors are mentioned there.
Then use sudo service cassandra restart
Edit : Since, cassandra.log doesn't exists, I have to assume, cassandra never got initialized.
That is why it says "Directory /var/lib/cassandra/data doesn't exist"
Lets take it step by step
sudo chmod 777 /var/lib/cassandra
sudo mkdir /var/lib/cassandra/data /var/lib/cassandra/commitlog
chown cassandra:cassandra /var/lib/cassandra/data
chown cassandra:cassandra /var/lib/cassandra/commitlog
And install Oracle jdk 1.8 instead of using openjdk. Then restart the service.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.