Configuring Cassandra with Private IP for Interconnections

I am trying to create a Cassandra cluster. For node interaction on each node, I use a separate interface with an internal IP address, which is not accessible from the outside. In addition, each machine has an interface that has an external IP, visible from the outside.

A cluster works fine when a client can use internal addresses. But when I try to connect to node using an external address, the connection itself works, but the cluster is described to the client using internal addresses. As a result, the client fails because it cannot connect to Cassandra nodes using the reported internal addresses.

Is there a way to make the Cassandra cluster report the DNS names (or external IP addresses) of the nodes instead of their internal IP addresses?

+4
source share
2 answers

In cassandra.yaml set listen_address to the internal IP and rpc_address to the external IP, just follow the instructions in the comments.

+2
source

It just happened that this changed using broadcast_rpc_address, change it to the external IP address in the cassandra.yaml file and restart cassandra.

+1
source

Source: https://habr.com/ru/post/1489767/


All Articles