YARN-3568. TestAMRMTokens should use some random port. (Takashi Ohnishi via Subru).
This commit is contained in:
parent
b98fc8249f
commit
79ae78dcbe
@ -113,6 +113,8 @@ public void testTokenExpiry() throws Exception {
|
|||||||
DEFAULT_RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS);
|
DEFAULT_RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS);
|
||||||
conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
|
conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
|
||||||
YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);
|
YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS);
|
||||||
|
conf.set(YarnConfiguration.RM_SCHEDULER_ADDRESS,
|
||||||
|
"0.0.0.0:0");
|
||||||
|
|
||||||
MyContainerManager containerManager = new MyContainerManager();
|
MyContainerManager containerManager = new MyContainerManager();
|
||||||
final MockRMWithAMS rm =
|
final MockRMWithAMS rm =
|
||||||
@ -230,6 +232,8 @@ public void testMasterKeyRollOver() throws Exception {
|
|||||||
YarnConfiguration.RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS,
|
YarnConfiguration.RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS,
|
||||||
rolling_interval_sec);
|
rolling_interval_sec);
|
||||||
conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, am_expire_ms);
|
conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, am_expire_ms);
|
||||||
|
conf.set(YarnConfiguration.RM_SCHEDULER_ADDRESS,
|
||||||
|
"0.0.0.0:0");
|
||||||
MyContainerManager containerManager = new MyContainerManager();
|
MyContainerManager containerManager = new MyContainerManager();
|
||||||
final MockRMWithAMS rm =
|
final MockRMWithAMS rm =
|
||||||
new MockRMWithAMS(conf, containerManager);
|
new MockRMWithAMS(conf, containerManager);
|
||||||
|
Loading…
Reference in New Issue
Block a user