I am trying to set up a test Cassandra 3.3 cluster on Ubuntu 15.10 with OpenJDK 1.8. The nodes can't talk to each other because Cassandra only listens on the loopback interface, as netstat
shows.
tcp 0 0 127.0.0.1:7199 0.0.0.0:* LISTEN
tcp6 0 0 127.0.0.1:9042 :::* LISTEN
I have tried to insert my external IP address in /etc/cassandra/cassandra.yml.
listen_address
: I tried the actual external IP address and leaving the field empty.rpc_address
: I tried the actual external IP address and 0.0.0.0.
I also tried modifying the following in /etc/cassandra/cassandra-env.sh.
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<actual external IP address>"
Between each change I stop the service, delete /var/lib/cassandra/data/system, and restart the service.
How does one configure the interface Cassandra listens to?