public final class CapacitySchedulerConfigValidator extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
validateCSConfiguration(org.apache.hadoop.conf.Configuration oldConf,
org.apache.hadoop.conf.Configuration newConf,
RMContext rmContext) |
static void |
validateMemoryAllocation(org.apache.hadoop.conf.Configuration conf) |
static Set<String> |
validatePlacementRules(Collection<String> placementRuleStrs) |
static void |
validateQueueHierarchy(CSQueueStore queues,
CSQueueStore newQueues,
CapacitySchedulerConfiguration newConf)
Ensure all existing queues are present.
|
static void |
validateVCores(org.apache.hadoop.conf.Configuration conf) |
public static boolean validateCSConfiguration(org.apache.hadoop.conf.Configuration oldConf, org.apache.hadoop.conf.Configuration newConf, RMContext rmContext) throws IOException
IOException
public static Set<String> validatePlacementRules(Collection<String> placementRuleStrs) throws IOException
IOException
public static void validateMemoryAllocation(org.apache.hadoop.conf.Configuration conf)
public static void validateVCores(org.apache.hadoop.conf.Configuration conf)
public static void validateQueueHierarchy(CSQueueStore queues, CSQueueStore newQueues, CapacitySchedulerConfiguration newConf) throws IOException
queues
- existing queuesnewQueues
- new queuesnewConf
- Capacity Scheduler Configuration.IOException
- an I/O exception has occurred.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.