To remove roles from an existing node:

  1. Purge the packages corresponding to the roles using apt-get or yum.
  2. Run with a list of the CLDB nodes and ZooKeeper nodes in the cluster.
  3. If you have removed the CLDB or ZooKeeper role, run -R on all nodes in the cluster to read new configuration information from the cldb.conf and warden.conf files.

The warden picks up the new configuration automatically. When it is convenient, restart the warden:

# service mapr-warden restart

Removing the mapr-filesystem role requires additional steps. Refer to Removing the Fileserver Role.