YARN-4935. TestYarnClient#testSubmitIncorrectQueue fails when FairScheduler is the default. (Yufei Gu via kasha)
This commit is contained in:
parent
5bd7b592e5
commit
6e297836d6
@ -208,12 +208,15 @@ public void testSubmitApplication() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test (timeout = 30000)
|
@Test (timeout = 30000)
|
||||||
public void testSubmitIncorrectQueue() throws IOException {
|
public void testSubmitIncorrectQueueToCapacityScheduler() throws IOException {
|
||||||
MiniYARNCluster cluster = new MiniYARNCluster("testMRAMTokens", 1, 1, 1);
|
MiniYARNCluster cluster = new MiniYARNCluster("testMRAMTokens", 1, 1, 1);
|
||||||
YarnClient rmClient = null;
|
YarnClient rmClient = null;
|
||||||
try {
|
try {
|
||||||
cluster.init(new YarnConfiguration());
|
YarnConfiguration conf = new YarnConfiguration();
|
||||||
cluster.start();
|
conf.set(YarnConfiguration.RM_SCHEDULER,
|
||||||
|
CapacityScheduler.class.getName());
|
||||||
|
cluster.init(conf);
|
||||||
|
cluster.start();
|
||||||
final Configuration yarnConf = cluster.getConfig();
|
final Configuration yarnConf = cluster.getConfig();
|
||||||
rmClient = YarnClient.createYarnClient();
|
rmClient = YarnClient.createYarnClient();
|
||||||
rmClient.init(yarnConf);
|
rmClient.init(yarnConf);
|
||||||
|
Loading…
Reference in New Issue
Block a user