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).
You must edit the cassandra.yaml file.
The location of the cassandra.yaml file 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
Procedure
-
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.-
(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_snitchisPropertyFileSnitch, 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.