YARN-5851. TestContainerManagerSecurity testContainerManager[1] failed (Contributed by Haibo Chen via Daniel Templeton)
(cherry picked from commit dd9a96cb17
)
This commit is contained in:
parent
803aba03f2
commit
c22ceb0a9b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue