Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Cassandra with private IP for internode communications

I am trying to create a Cassandra cluster. For inter-node communications, on each node, I am using a separate interface with an internal IP address that is not accessible form outside. In addition each machine has an interface that has an external IP visible from outside.

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

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

like image 599
Alex Avatar asked Oct 21 '22 06:10

Alex


1 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.

like image 110
Theo Avatar answered Oct 25 '22 17:10

Theo