YARN-5851. TestContainerManagerSecurity testContainerManager[1] failed (Contributed by Haibo Chen via Daniel Templeton)

(cherry picked from commit dd9a96cb17)
This commit is contained in:
Daniel Templeton 2016-11-29 14:22:19 -08:00
parent 803aba03f2
commit c22ceb0a9b
1 changed files with 1 additions and 1 deletions

View File

@ -105,6 +105,7 @@ public class TestContainerManagerSecurity extends KerberosSecurityTestcase {
testRootDir.mkdirs();
httpSpnegoKeytabFile.deleteOnExit();
getKdc().createPrincipal(httpSpnegoKeytabFile, httpSpnegoPrincipal);
UserGroupInformation.setConfiguration(conf);
yarnCluster =
new MiniYARNCluster(TestContainerManagerSecurity.class.getName(), 1, 1,
@ -148,7 +149,6 @@ public class TestContainerManagerSecurity extends KerberosSecurityTestcase {
public TestContainerManagerSecurity(Configuration conf) {
conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, 100000L);
UserGroupInformation.setConfiguration(conf);
this.conf = conf;
}