Reputation: 5892
I'm using cassandra-1.1.
I want to configure a cluster of 4 instances (2 instances on each pc) I've updated the .yaml file configuration to the following:
listen_address = 127.0.0.1 (127.0.0.2)
rpc_port=9160 (9161)
rpc_address=0.0.0.0
The brackets are for the second instance on the same pc.
But In this case the nodetool find the only two cassandra instances on the same pc (and not 4)
./nodetool -h 127.0.0.1 -p 8001 ring
I've also configured
- seeds: "172.10.10.32,172.10.10.33"
The same on the two pc's (x.x.x.32 and x.x.x.33).
What am I missing?
Upvotes: 1
Views: 356
Reputation: 9161
Your instances are only listening on loopback interfaces (127.0.0.1
and 127.0.0.2
). Remote nodes will not be able to connect to your local loopback interfaces. Thus, they will not ever be able to learn that the remote instances are running.
If you want remote nodes to be able to connect, you need to listen on external interfaces.
Upvotes: 1