Search in sources :

Example 1 with PlacementRule

use of org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementRule in project hadoop by apache.

the class CapacityScheduler method updatePlacementRules.

private void updatePlacementRules() throws IOException {
    List<PlacementRule> placementRules = new ArrayList<>();
    // Initialize UserGroupMappingPlacementRule
    // TODO, need make this defineable by configuration.
    UserGroupMappingPlacementRule ugRule = getUserGroupMappingPlacementRule();
    if (null != ugRule) {
        placementRules.add(ugRule);
    }
    rmContext.getQueuePlacementManager().updateRules(placementRules);
}
Also used : PlacementRule(org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementRule) UserGroupMappingPlacementRule(org.apache.hadoop.yarn.server.resourcemanager.placement.UserGroupMappingPlacementRule) UserGroupMappingPlacementRule(org.apache.hadoop.yarn.server.resourcemanager.placement.UserGroupMappingPlacementRule) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 PlacementRule (org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementRule)1 UserGroupMappingPlacementRule (org.apache.hadoop.yarn.server.resourcemanager.placement.UserGroupMappingPlacementRule)1