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

This commit is contained in:
Masatake Iwasaki 2021-01-05 13:38:34 +09:00 committed by GitHub
parent 77299ae992
commit 5abeecd33f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,8 @@ private void setupInternal(int numNodeManager, float timelineVersion,
true);
conf.setBoolean(
YarnConfiguration.OPPORTUNISTIC_CONTAINER_ALLOCATION_ENABLED, true);
conf.setInt(YarnConfiguration.NM_OPPORTUNISTIC_CONTAINERS_MAX_QUEUE_LENGTH,
10);
conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER,
YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER);
// ATS version specific settings