Adding a role to an existing node:
The process of adding a role to a node is similar to the initial installation process for nodes. For further detail see Installing MapR Software.
- Install the package(s) corresponding to the new role(s) using
configure.shwith a list of the CLDB nodes and ZooKeeper nodes in the cluster. If this node does not have any of the CLDB, ZooKeeper, or Fileserver roles, go to step 5.
- If you added the CLDB or ZooKeeper role, you must run
configure.sh -Ron all other nodes in the cluster.
- If you added the Fileserver role, run
disksetupto format and prepare disks for use as storage.
Restart the warden:
% service mapr-warden restart
When the warden restarts, it picks up the new configuration and starts the services that support the new role, making them active in the cluster.
Removing a role from an existing node:
Stop the service for the role you want to remove from the MapR Control System (MCS) or with the
maprclicommand-line tool. The following example stops the HBase master service:
% maprcli node services -hbmaster stop -nodes mapr-node1
- Purge the role packages with the
zyppercommands, as suitable for your operating system.
- Run the
configure.shscript with the
When you remove the CLDB or ZooKeeper role from a node, run
configure.sh -Ron all nodes in the cluster.
The warden picks up the new configuration automatically. When it is convenient, restart the warden:
mapr-filesystem role requires additional steps. Refer to Removing the Fileserver Role.