Changing the IP address of a node
To change the IP address of a node, simply change the IP of node and then restart DataStax Enterprise (DSE).
-
Stop DSE.
If running DataStax Enterprise as a service, be sure to
drainthe node. -
Replace the old IP address in the
cassandra.yamlwith the new one.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
-
(Optional if already set)
rpc_address
-
-
If the node is a seed node, update the -seeds parameter in the
seed_providerlistcassandra.yamlfile on all nodes. -
If the
endpoint_snitchis PropertyFileSnitch, add an entry for the new IP address incassandra-topology.propertieson all nodes.Do NOT remove the entry for the old IP address.
-
Update the DNS and the local host IP settings.
-
Start DSE on the local host.
-
If the using the PropertyFileSnitch, then perform a rolling restart.