ConfTreeOperations resources =
instanceDefinition.getResourceOperations();
Set<String> unknownRoles = resources.getComponentNames();
unknownRoles.removeAll(knownRoleNames);
if (!unknownRoles.isEmpty()) {
throw new BadCommandArgumentsException("Unknown component: %s",
unknownRoles.iterator().next());
}
providerUtils.validateNodeCount(instanceDefinition, HBaseKeys.ROLE_WORKER,
0, -1);
providerUtils.validateNodeCount(instanceDefinition, HBaseKeys.ROLE_MASTER,