Skip to content

Commit

Permalink
YARN-4935. TestYarnClient#testSubmitIncorrectQueue fails when FairSch…
Browse files Browse the repository at this point in the history
…eduler is the default. (Yufei Gu via kasha)
  • Loading branch information
kambatla committed Apr 21, 2016
1 parent 5bd7b59 commit 6e29783
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,15 @@ public void testSubmitApplication() {
}

@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);
Expand Down

0 comments on commit 6e29783

Please sign in to comment.