Reputation: 1750
I'm getting a connection error "unable to connect to any server" when I run .cqlsh command from the bin directory of my node.
I'm using an edited yaml file containing only the following(rest all values present in the default yaml have been omitted) :
cluster name, num tokens, partitioner, data file directories, commitlog directory, commitlog sync, commitlog sync period, saved cache directory, seed provider info, listen address and endpoint snitch.
Is this error because I've not included some important parameter in the yaml like rpc address? Please help.
OS: RHEL 6.9 Cassandra: 3.0.14
Upvotes: 1
Views: 2038
Reputation: 176
In writing the directories like data_file_directories, you should follow the same indentation as:
data_file_directories -
/path/to/access
Cassandra is very strict at it's indentation in yaml file. I once faced an issue due to this wrong indentation in data_file_directories.
Upvotes: 1
Reputation: 1578
Check the following:
nodetool status
/ ps -elf | grep cassa
netstat -an | grep 9042
cqlsh `hostname -i`
Good luck.
Upvotes: 0