Hi, I'm having this issue below, I'm using google cloud VM
$ cqlsh Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
I set my hosts like this
127.0.0.1 localhost 10.14*.0.* vm-1 10.15*.0.* vm-2
I got the ip from ifconfig
vm-1 inet addr:10.14*.0.* Bcast:10.14*.0.* Mask:255.255.255.255 vm-2 inet addr:10.15*.0.* Bcast:10.15*.0.* Mask:255.255.255.255
I set in VM-2 in cassandra.yaml
listen_address: 10.15*.0.* rpc_address: 10.15*.0.*
and in cassandra-env.sh
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=10.15*.0.*"
I already tried everything I could But I cant fix it, please help.