hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6689) PlacementRule should be configurable
Date Wed, 12 Jul 2017 23:11:00 GMT

    [ https://issues.apache.org/jira/browse/YARN-6689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084888#comment-16084888
] 

Hudson commented on YARN-6689:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11996 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11996/])
YARN-6689. PlacementRule should be configurable. (Jonathan Hung via (xgong: rev 9845bea59c0009b8ffff7050403e5ba270054164)
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java
* (add) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/placement/PlacementFactory.java


> 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
>            Assignee: Jonathan Hung
>             Fix For: 2.9.0, 3.0.0-beta1
>
>         Attachments: YARN-6689.001.patch, YARN-6689.002.patch, YARN-6689.003.patch, YARN-6689.004.patch
>
>
> 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.4.14#64029)

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


Mime
View raw message