Removing a CLDB Role
Describes how to remove the CLDB role from a node.
About this task
Procedure
-
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.
-
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>
-
Purge the CLDB package,
mapr-cldb
, with theapt-get
,yum
, orzypper
commands, depending on your operating system. -
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. -
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.