Changing the IP Address of a Node
About this task
Complete the following steps to change an IP address of a node:
Procedure
-
Shut down Warden and ZooKeeper on the node to be changed.
% service mapr-zookeeper stop % service mapr-warden stop
- Change the IP address of the node.
-
Edit the
/etc/hosts
file on all nodes to reflect the IP address change, or ensure that the IP addresses are resolvable through a DNS search. - On the node where you changed the IP address, restart the network interface. The interface shuts down, so you lose the connection.
- Log into the node using the new IP address.
-
Check the IP address. For example, run
ifconfig
. -
Run
configure.sh
configure.sh on the node where you changed the IP address. Use the -Z option to provide the list of ZooKeeper nodes if the node is a ZooKeeper node. Use the -C option to provide a list of CLDB nodes if the node is a CLDB node. Otherwise, run/opt/mapr/server/configure.sh -R
. -
If you changed the IP address of a ZooKeeper node:
-
If you run the Drillbit service on any nodes in the cluster, change the
ZooKeeper address in the
conf/drill-override.conf
file on the Drill nodes. - Start ZooKeeper on the ZooKeeper node, and then perform a rolling restart of ZooKeeper on all other ZooKeeper nodes. A rolling restart of ZooKeeper means restart ZooKeeper on each node, one at a time, pausing until the last restart finishes before beginning the next. Restart the ZooKeeper leader last.
-
If you run the Drillbit service on any nodes in the cluster, change the
ZooKeeper address in the
-
Verify that the new node joined the ZooKeeper quorum.
codebl
% service mapr-zookeeper qstatus
- Perform a rolling restart of Warden on all nodes.
-
Check that all nodes appear in the output of the node list command. You might
have to wait a few minutes until all nodes are registered before you get output
from this command.
% maprcli node list -columns ip
- Perform another rolling restart of Warden on all nodes to prevent possible problems with Warden picking up all services.