Changing the IP address of a node
Changing the IP address of a node.
cassandra.yaml
- The cassandra.yaml file is located in the installation_location/conf directory.
Procedure
- Stop Cassandra.
-
Replace the old IP address in the
cassandra.yaml with the new one.
- listen_address
- broadcast_address
- (Optional if already set) rpc_address
- If the node is a seed node, update the -seeds parameter in the seed_provider list cassandra.yaml file on all nodes.
-
If the endpoint_snitch is
PropertyFileSnitch
, add an entry for the new IP address in 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 Cassandra on the local host.
-
If the using the
PropertyFileSnitch
, then perform a rolling restart.