You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jonathan Hung (JIRA)" <ji...@apache.org> on 2017/06/27 22:16:00 UTC

[jira] [Comment Edited] (YARN-6689) PlacementRule should be configurable

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

Jonathan Hung edited comment on YARN-6689 at 6/27/17 10:15 PM:
---------------------------------------------------------------

Hi [~xgong]/[~leftnoteasy], as discussed, attached 002 patch which:
# changes userGroup to user-group (for UserGroupMappingPlacementRule)
# tries to load PlacementRule using reflection if keyword is not found


was (Author: jhung):
Hi [~xgong], as discussed, attached 002 patch which:
# changes userGroup to user-group (for UserGroupMappingPlacementRule)
# tries to load PlacementRule using reflection if keyword is not found

> 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
>         Attachments: YARN-6689.001.patch, YARN-6689.002.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