Removing a ZooKeeper Role
About this task
Procedure
-
Issue the following command to stop ZooKeeper on the node:
% service mapr-zookeeper stop
- Purge the ZooKeeper package mapr-zookeeper.
-
Run
configure.sh
.Use the-Z
option and provide the list of ZooKeeper nodes that excludes the node where you removed the role. -
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.
-
Issue the following command to verify that ZooKeeper is healthy and that the
expected nodes adopted the ZooKeeper node:
% service mapr-zookeeper qstatus
-
Perform a rolling restart of Warden on all other nodes.
Warden picks up the revised quorum.