Changing the IP address of a node
-
Edit the
cassandra.yamlfile.The location of the
cassandra.yamlfile depends on the type of installation:-
Package installations and Installer-Services installations:
/etc/dse/cassandra/cassandra.yaml -
Tarball installations and Installer-No Services installations:
<installation_location>/resources/cassandra/conf/cassandra.yaml
-
-
Replace the old IP address with the new one in the following parameters:
-
(Optional if already set)
rpc_address
-
If the node is a seed node, update the
-seedsparameter in theseed_providerlist on all nodes. -
If the
endpoint_snitchis PropertyFileSnitch, add a new entry for the new IP address incassandra-topology.propertieson all nodes.Don’t remove the entry for the old IP address in
cassandra-topology.properties. -
Update the DNS and the local host IP settings.
-
Start DSE on the local host.
-
If using the PropertyFileSnitch, perform a rolling restart of all nodes in the cluster.