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
drain
the node. -
Replace the old IP address in the
cassandra.yaml
with the new one.-
(Optional if already set)
rpc_address
-
If the node is a seed node, update the -seeds parameter in the
seed_provider
listcassandra.yaml
file on all nodes. -
If the
endpoint_snitch
isPropertyFileSnitch
, add an entry for the new IP address in thecassandra-topology.properties
file on 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.