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
-
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.
-
If the cluster has only one CLDB, run
configure.sh with the
-C option on all the nodes.
-
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
-
Purge the role packages with the
apt-get,
yum, or zypper commands, depending on your
operating system.
-
Run
configure.sh -R on the node where you removed the role.
Warden picks up the new configuration automatically.
-
Issue the following command to restart Warden on the node where you removed the
role:
% service mapr-warden restart