Managing Role Groups
For role types that allow multiple instances on multiple nodes, such as DataNodes, TaskTrackers, RegionServers (and many others), you can create multiple role groups to allow one set of role instances to use different configuration settings than another set of instances of the same role type.
In addition, in many cases when Cloudera Manager sets up a new cluster, it will create multiple role groups for these roles — one for the role instances running on slave nodes, and one for the role instance running on a host that is also hosting master roles.
If there are multiple role groups for a role type, you can move role instances from one group to another.
Creating a New Role Group
To create a new role group for a role type:
- Click the Services tab and select the service where you want to create a new role group.
- Pull down the Configuration tab at the top of the window and select Role Groups.
- Click Create New Group.
- Provide a name for the group.
- Select the type of role for the group. You will only be able to select role types that allow multiple instances, and that exist the Service you have selected.
- In the Copy From field, select the source of the basic configuration information for this role group; you can use any existing role group of the appropriate type, or you can choose None and the role group will be set up with all generic default values.
Managing an Existing Role Group
For an existing role groups, you can rename or delete them, and move roles from one to another (of the same role type).
- Click the Services tab and select the service you want to manage.
- Pull down the Configuration tab at the top of the window and select Role Groups. The Role Groups panel shows the Role Groups you can manage. This will include any groups created automatically by Cloudera Manager (such as the Default group for each role type) as well as any groups of the appropriate role types that you have created.
- Click the group you want to manage. If there are role instances assigned to this role group, they are listed here.
- To rename a role group, click the role group name, then enter the new name in the pop-up window, and click Rename to complete the action. You cannot rename a default group.
- To delete a role group, the group must first be empty. If you want to delete a group you've created, you must move any role instances to a different role group. A Delete button will be present only for an empty group. To delete the role group, click the Delete button, and confirm you want to perform the delete. You cannot delete any of the default groups.
- To move a role instance from one group
- Select the role instance(s) you want to move
- Pull down the Actions for Selected menu and select Move...
- In the pop-up that appears, select the group to which you want to move your selected role instance, and click Move.
When you move a role instance to a different group, it will inherit the configuration settings for its new group.