Removing a CLDB Role

Describes how to remove the CLDB role from a node.

About this task

Procedure

  1. If you have only one CLDB node in the cluster, add the CLDB role to another node.
    When failover occurs after removal of the CLDB node, the new CLDB node becomes the primary CLDB.
  2. Issue the following command to stop the CLDB service on the node:
    /opt/mapr/bin/maprcli node services -name cldb -action stop -nodes mapr-<node>
  3. Purge the CLDB package, mapr-cldb, with the apt-get, yum, or zypper commands, depending on your operating system.
  4. Run configure.sh with the -C, -N and -Z options on the node where you removed the role.
    Use the -C option to provide the list of CLDB nodes, excluding the node where you removed the role, -N to pass the name of the cluster, and -Z to specfy the list of ZooKeeper nodes.
  5. Run configure.sh with the -C, -N and -Z options on all other nodes in the cluster.
    Use the -C option to provide the list of CLDB nodes, excluding the node where you removed the role, -N to pass the name of the cluster, and -Z to specify the list of ZooKeeper nodes.