hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject hadoop git commit: YARN-4935. TestYarnClient#testSubmitIncorrectQueue fails when FairScheduler is the default. (Yufei Gu via kasha)
Date Thu, 21 Apr 2016 06:45:13 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 a2a65922d -> cd74cf952


YARN-4935. TestYarnClient#testSubmitIncorrectQueue fails when FairScheduler is the default.
(Yufei Gu via kasha)

(cherry picked from commit 6e297836d64498d90d0cd343789db2f2d490378a)


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

Branch: refs/heads/branch-2
Commit: cd74cf9525ebba263b26593b2dd2bf6145ed4541
Parents: a2a6592
Author: Karthik Kambatla <kasha@apache.org>
Authored: Wed Apr 20 23:40:46 2016 -0700
Committer: Karthik Kambatla <kasha@apache.org>
Committed: Wed Apr 20 23:41:03 2016 -0700

----------------------------------------------------------------------
 .../apache/hadoop/yarn/client/api/impl/TestYarnClient.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/cd74cf95/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestYarnClient.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestYarnClient.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestYarnClient.java
index 2d11d8a..6e0930c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestYarnClient.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestYarnClient.java
@@ -208,12 +208,15 @@ public class TestYarnClient {
   }
 
   @Test (timeout = 30000)
-  public void testSubmitIncorrectQueue() throws IOException {
+  public void testSubmitIncorrectQueueToCapacityScheduler() throws IOException {
     MiniYARNCluster cluster = new MiniYARNCluster("testMRAMTokens", 1, 1, 1);
     YarnClient rmClient = null;
     try {
-      cluster.init(new YarnConfiguration());
-	     cluster.start();
+      YarnConfiguration conf = new YarnConfiguration();
+      conf.set(YarnConfiguration.RM_SCHEDULER,
+        CapacityScheduler.class.getName());
+      cluster.init(conf);
+      cluster.start();
       final Configuration yarnConf = cluster.getConfig();
       rmClient = YarnClient.createYarnClient();
       rmClient.init(yarnConf);


Mime
View raw message