Class ReservationSchedulerConfiguration
java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationSchedulerConfiguration
- Direct Known Subclasses:
AllocationConfiguration,CapacitySchedulerConfiguration
public abstract class ReservationSchedulerConfiguration
extends org.apache.hadoop.conf.Configuration
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.Configuration.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReservationSchedulerConfiguration(org.apache.hadoop.conf.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAverageCapacity(QueuePath queue) Gets the average allowed capacity which will aggregated over thegetReservationWindow(org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath)by the theSharingPolicyto check aggregate used capacitylonggetEnforcementWindow(QueuePath queue) Gets the time in milliseconds for which thePlannerwill verify thePlans satisfy the constraintsfloatGets the maximum capacity at any time that theSharingPolicyallowsbooleangetMoveOnExpiry(QueuePath queue) Gets whether the applications should be killed or moved to the parent queue when theReservationDefinitionexpiresgetReplanner(QueuePath queue) Gets the name of thePlannerclass associated with the queueabstract Map<org.apache.hadoop.yarn.api.records.ReservationACL,org.apache.hadoop.security.authorize.AccessControlList> getReservationAcls(QueuePath queue) Gets a map containing theAccessControlListof users for eachReservationACLacl on thee specified queue.Gets the name of theSharingPolicyclass associated with the queuegetReservationAgent(QueuePath queue) Gets the name of theReservationAgentclass associated with the queuelonggetReservationWindow(QueuePath queue) Gets the length of time in milliseconds for which theSharingPolicychecks for validitybooleangetShowReservationAsQueues(QueuePath queuePath) Checks whether the reservation queues be hidden or visibleabstract booleanisReservable(QueuePath queue) Checks if the queue participates in reservation based schedulingMethods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addTags, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, getAllPropertiesByTag, getAllPropertiesByTags, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getEnumSet, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStorageSize, getStorageSize, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDurationHelper, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, isPropertyTag, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStorageSize, setStrings, setTimeDuration, size, substituteCommonVariables, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXml, writeXmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_RESERVATION_WINDOW
@Private public static final long DEFAULT_RESERVATION_WINDOW- See Also:
-
DEFAULT_RESERVATION_ADMISSION_POLICY
- See Also:
-
DEFAULT_RESERVATION_AGENT_NAME
- See Also:
-
DEFAULT_RESERVATION_PLANNER_NAME
- See Also:
-
DEFAULT_RESERVATION_MOVE_ON_EXPIRY
@Private public static final boolean DEFAULT_RESERVATION_MOVE_ON_EXPIRY- See Also:
-
DEFAULT_RESERVATION_ENFORCEMENT_WINDOW
@Private public static final long DEFAULT_RESERVATION_ENFORCEMENT_WINDOW- See Also:
-
DEFAULT_SHOW_RESERVATIONS_AS_QUEUES
@Private public static final boolean DEFAULT_SHOW_RESERVATIONS_AS_QUEUES- See Also:
-
DEFAULT_CAPACITY_OVER_TIME_MULTIPLIER
@Private public static final float DEFAULT_CAPACITY_OVER_TIME_MULTIPLIER- See Also:
-
-
Constructor Details
-
ReservationSchedulerConfiguration
public ReservationSchedulerConfiguration() -
ReservationSchedulerConfiguration
public ReservationSchedulerConfiguration(org.apache.hadoop.conf.Configuration configuration)
-
-
Method Details
-
isReservable
Checks if the queue participates in reservation based scheduling- Parameters:
queue- name of the queue- Returns:
- true if the queue participates in reservation based scheduling
-
getReservationAcls
public abstract Map<org.apache.hadoop.yarn.api.records.ReservationACL,org.apache.hadoop.security.authorize.AccessControlList> getReservationAcls(QueuePath queue) Gets a map containing theAccessControlListof users for eachReservationACLacl on thee specified queue.- Parameters:
queue- the queue with which to check a user's permissions.- Returns:
- The a Map of
ReservationACLtoAccessControlListwhich contains a list of users that have the specified permission level.
-
getReservationWindow
Gets the length of time in milliseconds for which theSharingPolicychecks for validity- Parameters:
queue- name of the queue- Returns:
- length in time in milliseconds for which to check the
SharingPolicy
-
getAverageCapacity
Gets the average allowed capacity which will aggregated over thegetReservationWindow(org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath)by the theSharingPolicyto check aggregate used capacity- Parameters:
queue- name of the queue- Returns:
- average capacity allowed by the
SharingPolicy
-
getInstantaneousMaxCapacity
Gets the maximum capacity at any time that theSharingPolicyallows- Parameters:
queue- name of the queue- Returns:
- maximum allowed capacity at any time
-
getReservationAdmissionPolicy
Gets the name of theSharingPolicyclass associated with the queue- Parameters:
queue- name of the queue- Returns:
- the class name of the
SharingPolicy
-
getReservationAgent
Gets the name of theReservationAgentclass associated with the queue- Parameters:
queue- name of the queue- Returns:
- the class name of the
ReservationAgent
-
getShowReservationAsQueues
Checks whether the reservation queues be hidden or visible- Parameters:
queuePath- name of the queue- Returns:
- true if reservation queues should be visible
-
getReplanner
Gets the name of thePlannerclass associated with the queue- Parameters:
queue- name of the queue- Returns:
- the class name of the
Planner
-
getMoveOnExpiry
Gets whether the applications should be killed or moved to the parent queue when theReservationDefinitionexpires- Parameters:
queue- name of the queue- Returns:
- true if application should be moved, false if they need to be killed
-
getEnforcementWindow
Gets the time in milliseconds for which thePlannerwill verify thePlans satisfy the constraints- Parameters:
queue- name of the queue- Returns:
- the time in milliseconds for which to check constraints
-