Renaming a Node
Procedure
To rename a node:
-
Stop Warden on the node. Example:
service mapr-warden stop
-
If the node is a ZooKeeper node, stop ZooKeeper on the node. Example:
service mapr-zookeeper stop
-
Rename the host:
- On Red Hat or CentOS, edit the
HOSTNAME
parameter in the file/etc/sysconfig/network
and restart thexinetd
service or reboot the node. - On Ubuntu, change the old hostname to the new hostname in the
/etc/hostname
and/etc/hosts
files.
- On Red Hat or CentOS, edit the
-
If the node is a ZooKeeper node or a CLDB node, run
configure.sh
with a list of CLDB and ZooKeeper nodes. -
If the node is a ZooKeeper node, start ZooKeeper on the node. Example:
service mapr-zookeeper start
-
Start Warden on the node. Example:
service mapr-warden start