YARN-10558. Fix failure of TestDistributedShell#testDSShellWithOpportunisticContainers. (#2586)

(cherry picked from commit 5abeecd33f)
This commit is contained in:
Masatake Iwasaki 2021-01-05 13:38:34 +09:00
parent e95ee67632
commit 35740a25d9
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ public class TestDistributedShell {
true); true);
conf.setBoolean( conf.setBoolean(
YarnConfiguration.OPPORTUNISTIC_CONTAINER_ALLOCATION_ENABLED, true); YarnConfiguration.OPPORTUNISTIC_CONTAINER_ALLOCATION_ENABLED, true);
conf.setInt(YarnConfiguration.NM_OPPORTUNISTIC_CONTAINERS_MAX_QUEUE_LENGTH,
10);
conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER, conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER,
YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER); YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER);
// ATS version specific settings // ATS version specific settings