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).
Where is the cassandra.yaml file?
The location of the cassandra.yaml file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
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.