Class CapacitySchedulerConfigValidator
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfigValidator
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanvalidateCSConfiguration(org.apache.hadoop.conf.Configuration oldConfParam, org.apache.hadoop.conf.Configuration newConf, RMContext rmContext) static voidvalidateMemoryAllocation(org.apache.hadoop.conf.Configuration conf) validatePlacementRules(Collection<String> placementRuleStrs) static voidvalidateQueueHierarchy(CSQueueStore queues, CSQueueStore newQueues, CapacitySchedulerConfiguration newConf) Ensure all existing queues are present.static voidvalidateVCores(org.apache.hadoop.conf.Configuration conf)
-
Method Details
-
validateCSConfiguration
public static boolean validateCSConfiguration(org.apache.hadoop.conf.Configuration oldConfParam, org.apache.hadoop.conf.Configuration newConf, RMContext rmContext) throws IOException - Throws:
IOException
-
validatePlacementRules
public static Set<String> validatePlacementRules(Collection<String> placementRuleStrs) throws IOException - Throws:
IOException
-
validateMemoryAllocation
public static void validateMemoryAllocation(org.apache.hadoop.conf.Configuration conf) -
validateVCores
public static void validateVCores(org.apache.hadoop.conf.Configuration conf) -
validateQueueHierarchy
public static void validateQueueHierarchy(CSQueueStore queues, CSQueueStore newQueues, CapacitySchedulerConfiguration newConf) throws IOException Ensure all existing queues are present. Queues cannot be deleted if it's not in Stopped state, Queue's cannot be moved from one hierarchy to other also. Previous child queue could be converted into parent queue if it is in STOPPED state.- Parameters:
queues- existing queuesnewQueues- new queuesnewConf- Capacity Scheduler Configuration.- Throws:
IOException- an I/O exception has occurred.
-