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. cassandra.yaml
The location of
the
cassandra.yaml file depends on the type of
installation:
Package installations |
/etc/dse/cassandra/cassandra.yaml |
Tarball installations |
installation_location/resources/cassandra/conf/cassandra.yaml |
Procedure
-
To speed up the restart process, before stopping the dse service, run nodetool drain.
-
Stop DataStax Enterprise.
-
Replace the old IP address in the
with the new one.
-
If the node is a seed node, update the -seeds parameter in
the seed_provider list
file on all nodes.
-
If the endpoint_snitch is
PropertyFileSnitch
, add an entry for the new IP address in
the the cassandra-topology.properties file on all nodes.
Note: 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.