Removing a Role

Describes how to remove a role from a node, using the CLI.

About this task

Do not use these steps to remove the CLDB, ZooKeeper, or Fileserver role from a node.
NOTE
When collectd is installed on a node with YARN ResourceManager or NodeManager, running configure.sh –R, to add or remove roles on the node, triggers these services to restart. During a restart, the NodeManager and ResourceManager are temporarily unavailable for new application submission. A patch is available to resolve this behavior. See Applying Patches.
The following steps describe how to remove a role from a node:

Procedure

  1. If you are removing the NFS role, unmount any existing client mounts.
    Removing the NFS role from a node affects any Virtual IP (VIP) pools that include this node.
  2. If the cluster has only one CLDB, run configure.sh with the -C option on all the nodes.
  3. Stop the service for the role you want to remove, either through the Control System or by issuing a maprcli command:
    % maprcli node services -name <service_name> -action stop -nodes <node-name>

    The following example stops the webserver role on node "my-node":

    % maprcli node services -name webserver -action stop -nodes my-node
  4. Purge the role packages with the apt-get, yum, or zypper commands, depending on your operating system.
  5. Run configure.sh -R on the node where you removed the role.
    Warden picks up the new configuration automatically.
  6. Issue the following command to restart Warden on the node where you removed the role:
    % service mapr-warden restart