I\'ve just started working with Cassandra (datastax), version 2.1.3 and cqlsh version 5.0.1.
Cassandra starts up fine and the cluster is operational instantly.
The first and foremost step to diagnose is to check the Cassandra logs.
Find out the process and there will be hints in the command line parameters to tell you where the logs files are.
ps aux | grep cassandra
In my case, it was in default location /etc/cassandra/conf/cassandra.yaml
(if you installed the yum package).
Make sure three things are configured and configured the same host/ip.
listen_address
- you may leave it blank it will default to hostname/first IP binding with eth0
network cardrpc_address
- this is optional, leave blank if you want it to be same as listen_address
seeds
- this is a double quoted string of comma-separated list of IP addresses or hostnames. This was default to a hardcoded "127.0.0.1", changing it to the same as list_address
and restart of Cassandra service made it work for me.References:
I was trying to run it on a network drive. So I increased the client_timeout
in cqlsh and it worked.