Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
YARN-3635 introduces PlacementRules for placing applications in queues. It is currently hardcoded to one rule, UserGroupMappingPlacementRule. This should be configurable as mentioned in the comments:
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); }