hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hung (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6689) PlacementRule should be configurable
Date Mon, 05 Jun 2017 18:16:04 GMT
Jonathan Hung created YARN-6689:
-----------------------------------

             Summary: PlacementRule should be configurable
                 Key: YARN-6689
                 URL: https://issues.apache.org/jira/browse/YARN-6689
             Project: Hadoop YARN
          Issue Type: Improvement
            Reporter: Jonathan Hung


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:{noformat}  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);
  }{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org


Mime
View raw message