YARN-10605. Add queue-mappings-override.enable property in FS2CS conversions. Contributed by Andras Gyori
This commit is contained in:
parent
7d88953768
commit
9bf2ac07bb
@ -339,6 +339,7 @@ private void performRuleConversion(FairScheduler fs)
|
||||
|
||||
capacitySchedulerConfig.set(MAPPING_RULE_FORMAT,
|
||||
MAPPING_RULE_FORMAT_JSON);
|
||||
capacitySchedulerConfig.setOverrideWithQueueMappings(true);
|
||||
if (!rulesToFile) {
|
||||
String json =
|
||||
((ByteArrayOutputStream)mappingRulesOutputStream)
|
||||
|
@ -668,6 +668,8 @@ public void testPlacementRulesConversionEnabled() throws Exception {
|
||||
any(FSConfigToCSConfigRuleHandler.class),
|
||||
any(CapacitySchedulerConfiguration.class),
|
||||
anyBoolean());
|
||||
assertTrue(converter.getCapacitySchedulerConfig().getBoolean(
|
||||
CapacitySchedulerConfiguration.ENABLE_QUEUE_MAPPING_OVERRIDE, false));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user