Renaming a Node

To rename a node:

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