hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asur...@apache.org
Subject [28/37] hadoop git commit: YARN-7807. Assume intra-app anti-affinity as default for scheduling request inside AppPlacementAllocator. (Wangda Tan via asuresh)
Date Wed, 31 Jan 2018 15:55:58 GMT
YARN-7807. Assume intra-app anti-affinity as default for scheduling request inside AppPlacementAllocator.
(Wangda Tan via asuresh)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/644afe5f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/644afe5f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/644afe5f

Branch: refs/heads/YARN-6592
Commit: 644afe5fd800ac4f2b873a99f9b3868c3a8c5c40
Parents: a4c539f
Author: Arun Suresh <asuresh@apache.org>
Authored: Wed Jan 24 12:55:01 2018 -0800
Committer: Arun Suresh <asuresh@apache.org>
Committed: Wed Jan 31 01:30:17 2018 -0800

----------------------------------------------------------------------
 .../placement/SingleConstraintAppPlacementAllocator.java        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/644afe5f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/placement/SingleConstraintAppPlacementAllocator.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/placement/SingleConstraintAppPlacementAllocator.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/placement/SingleConstraintAppPlacementAllocator.java
index 9e7d71c..b02cb00 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/placement/SingleConstraintAppPlacementAllocator.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/placement/SingleConstraintAppPlacementAllocator.java
@@ -334,14 +334,15 @@ public class SingleConstraintAppPlacementAllocator<N extends SchedulerNode>
         targetAllocationTags = new HashSet<>(
             targetExpression.getTargetValues());
 
-        if (targetExpression.getTargetKey() == null || !targetExpression
+        if (targetExpression.getTargetKey() != null && !targetExpression
             .getTargetKey().equals(APPLICATION_LABEL_INTRA_APPLICATION)) {
           throwExceptionWithMetaInfo(
               "As of now, the only accepted target key for targetKey of "
                   + "allocation_tag target expression is: ["
                   + APPLICATION_LABEL_INTRA_APPLICATION
                   + "]. Please make changes to placement constraints "
-                  + "accordingly.");
+                  + "accordingly. If this is null, it will be set to "
+                  + APPLICATION_LABEL_INTRA_APPLICATION + " by default.");
         }
       }
     }


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


Mime
View raw message