|
@@ -159,11 +159,6 @@ public class TestAMRMClient {
|
|
// set the minimum allocation so that resource decrease can go under 1024
|
|
// set the minimum allocation so that resource decrease can go under 1024
|
|
conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 512);
|
|
conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 512);
|
|
conf.setLong(YarnConfiguration.NM_LOG_RETAIN_SECONDS, 1);
|
|
conf.setLong(YarnConfiguration.NM_LOG_RETAIN_SECONDS, 1);
|
|
- createClientAndCluster(conf);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- private static void createClientAndCluster(Configuration conf)
|
|
|
|
- throws Exception {
|
|
|
|
yarnCluster = new MiniYARNCluster(TestAMRMClient.class.getName(), nodeCount, 1, 1);
|
|
yarnCluster = new MiniYARNCluster(TestAMRMClient.class.getName(), nodeCount, 1, 1);
|
|
yarnCluster.init(conf);
|
|
yarnCluster.init(conf);
|
|
yarnCluster.start();
|
|
yarnCluster.start();
|
|
@@ -872,25 +867,6 @@ public class TestAMRMClient {
|
|
initAMRMClientAndTest(false);
|
|
initAMRMClientAndTest(false);
|
|
}
|
|
}
|
|
|
|
|
|
- @Test (timeout=60000)
|
|
|
|
- public void testAMRMClientWithSaslEncryption() throws Exception {
|
|
|
|
- conf.set("hadoop.rpc.protection", "privacy");
|
|
|
|
- // we have to create a new instance of MiniYARNCluster to avoid SASL qop
|
|
|
|
- // mismatches between client and server
|
|
|
|
- tearDown();
|
|
|
|
- createClientAndCluster(conf);
|
|
|
|
- startApp();
|
|
|
|
- initAMRMClientAndTest(false);
|
|
|
|
-
|
|
|
|
- // recreate the original MiniYARNCluster and YarnClient for other tests
|
|
|
|
- conf.unset("hadoop.rpc.protection");
|
|
|
|
- tearDown();
|
|
|
|
- createClientAndCluster(conf);
|
|
|
|
- // unless we start an application the cancelApp() method will fail when
|
|
|
|
- // it runs after this test
|
|
|
|
- startApp();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Test (timeout=60000)
|
|
@Test (timeout=60000)
|
|
public void testAMRMClientAllocReqId() throws YarnException, IOException {
|
|
public void testAMRMClientAllocReqId() throws YarnException, IOException {
|
|
initAMRMClientAndTest(true);
|
|
initAMRMClientAndTest(true);
|