Queue.QueueLabelPolicyLABEL_NONE| Constructor and Description |
|---|
LeafQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old) |
| Modifier and Type | Method and Description |
|---|---|
CSAssignment |
assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerNode node)
Assign containers to applications in the queue or it's children (if any).
|
void |
collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
Adds all applications in the queue and its subqueues to the given collection.
|
void |
completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
FiCaSchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event,
CSQueue childQueue)
A container assigned to the queue has completed.
|
void |
finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId application,
String user)
An application submitted to this queue has finished.
|
void |
finishApplicationAttempt(FiCaSchedulerApp application,
String queue)
An application attempt submitted to this queue has finished.
|
float |
getAbsoluteCapacity()
Get capacity of the parent of the queue as a function of the
cumulative capacity in the cluster.
|
float |
getAbsoluteMaximumCapacity()
Get maximum-capacity of the queue as a funciton of the cumulative capacity
of the cluster.
|
float |
getAbsoluteUsedCapacity()
Get the current absolute used capacity of the queue
relative to the entire cluster.
|
ActiveUsersManager |
getActiveUsersManager()
Get the
ActiveUsersManager for the queue. |
Set<FiCaSchedulerApp> |
getApplications()
Obtain (read-only) collection of active applications.
|
float |
getCapacity()
Get the configured capacity of the queue.
|
List<CSQueue> |
getChildQueues()
Get child queues
|
net.java.dev.eval.Expression |
getLabel() |
Queue.QueueLabelPolicy |
getLabelPolicy() |
float |
getMaxAMResourcePerQueuePercent()
Used only by tests.
|
int |
getMaxApplications() |
int |
getMaxApplicationsPerUser() |
int |
getMaximumActiveApplications() |
int |
getMaximumActiveApplicationsPerUser() |
org.apache.hadoop.yarn.api.records.Resource |
getMaximumAllocation()
Used only by tests.
|
float |
getMaximumCapacity()
Get the configured maximum-capacity of the queue.
|
QueueMetrics |
getMetrics()
Get the queue metrics
|
org.apache.hadoop.yarn.api.records.Resource |
getMinimumAllocation()
Used only by tests.
|
float |
getMinimumAllocationFactor()
Used only by tests.
|
int |
getNodeLocalityDelay() |
int |
getNumActiveApplications() |
int |
getNumActiveApplications(String user) |
int |
getNumApplications()
Get the number of applications in the queue.
|
int |
getNumApplications(String user) |
int |
getNumContainers() |
int |
getNumPendingApplications() |
int |
getNumPendingApplications(String user) |
CSQueue |
getParent()
Get the parent
Queue. |
org.apache.hadoop.yarn.api.records.QueueInfo |
getQueueInfo(boolean includeChildQueues,
boolean recursive)
Get queue information
|
String |
getQueueName()
Get the queue name.
|
String |
getQueuePath()
Get the full name of the queue, including the heirarchy.
|
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given
user. |
org.apache.hadoop.yarn.api.records.QueueState |
getState()
Get the current run-state of the queue
|
org.apache.hadoop.yarn.api.records.Resource |
getTotalResourcePending() |
float |
getUsedCapacity()
Get the current used capacity of the queue
and it's children (if any).
|
org.apache.hadoop.yarn.api.records.Resource |
getUsedResources()
Get the currently utilized resources in the cluster
by the queue and children (if any).
|
int |
getUserLimit() |
float |
getUserLimitFactor() |
ArrayList<UserInfo> |
getUsers() |
boolean |
hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
Check if the
user has permission to perform the operation |
void |
recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
org.apache.hadoop.yarn.api.records.Container container)
Recover the state of the queue
|
void |
reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue.
|
void |
removeApplicationAttempt(FiCaSchedulerApp application,
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.User user) |
void |
setAbsoluteUsedCapacity(float absUsedCapacity)
Set absolute used capacity of the queue.
|
void |
setParent(CSQueue newParentQueue)
Set the parent
Queue. |
void |
setUsedCapacity(float usedCapacity)
Set used capacity of the queue.
|
void |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
Submit a new application to the queue.
|
void |
submitApplicationAttempt(FiCaSchedulerApp application,
String userName)
Submit an application attempt to the queue.
|
String |
toString() |
void |
updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
Update the cluster resource for queues as we add/remove nodes
|
public LeafQueue(CapacitySchedulerContext cs, String queueName, CSQueue parent, CSQueue old)
public float getCapacity()
CSQueuegetCapacity in interface CSQueuepublic float getAbsoluteCapacity()
CSQueuegetAbsoluteCapacity in interface CSQueuepublic float getMaximumCapacity()
CSQueuegetMaximumCapacity in interface CSQueuepublic float getAbsoluteMaximumCapacity()
CSQueuegetAbsoluteMaximumCapacity in interface CSQueuepublic float getAbsoluteUsedCapacity()
CSQueuegetAbsoluteUsedCapacity in interface CSQueuepublic CSQueue getParent()
CSQueueQueue.public void setParent(CSQueue newParentQueue)
CSQueueQueue.public String getQueueName()
CSQueuegetQueueName in interface CSQueuegetQueueName in interface Queuepublic String getQueuePath()
CSQueuegetQueuePath in interface CSQueue@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()
@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()
@InterfaceAudience.Private public float getMinimumAllocationFactor()
@InterfaceAudience.Private public float getMaxAMResourcePerQueuePercent()
public int getMaxApplications()
public int getMaxApplicationsPerUser()
public int getMaximumActiveApplications()
public int getMaximumActiveApplicationsPerUser()
public ActiveUsersManager getActiveUsersManager()
CSQueueActiveUsersManager for the queue.getActiveUsersManager in interface CSQueuegetActiveUsersManager in interface QueueActiveUsersManager for the queuepublic float getUsedCapacity()
CSQueuegetUsedCapacity in interface CSQueuepublic org.apache.hadoop.yarn.api.records.Resource getUsedResources()
CSQueuegetUsedResources in interface CSQueuepublic List<CSQueue> getChildQueues()
CSQueuegetChildQueues in interface CSQueuepublic void setUsedCapacity(float usedCapacity)
CSQueuesetUsedCapacity in interface CSQueueusedCapacity - used capacity of the queuepublic void setAbsoluteUsedCapacity(float absUsedCapacity)
CSQueuesetAbsoluteUsedCapacity in interface CSQueueabsUsedCapacity - absolute used capacity of the queuepublic int getNumApplications()
CSQueuegetNumApplications in interface CSQueuepublic int getNumPendingApplications()
public int getNumActiveApplications()
@InterfaceAudience.Private public int getNumApplications(String user)
@InterfaceAudience.Private public int getNumPendingApplications(String user)
@InterfaceAudience.Private public int getNumActiveApplications(String user)
public int getNumContainers()
public org.apache.hadoop.yarn.api.records.QueueState getState()
CSQueue@InterfaceAudience.Private public int getUserLimit()
@InterfaceAudience.Private public float getUserLimitFactor()
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
boolean recursive)
QueuegetQueueInfo in interface QueueincludeChildQueues - include child queues?recursive - recursively get child queue information?public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.getQueueUserAclInfo in interface Queueuser - username@InterfaceAudience.Private public int getNodeLocalityDelay()
public ArrayList<UserInfo> getUsers()
public void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource) throws IOException
CSQueuereinitialize in interface CSQueuenewlyParsedQueue - new queue to re-initalize fromclusterResource - resources in the clusterIOExceptionpublic boolean hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
CSQueueuser has permission to perform the operationpublic void submitApplicationAttempt(FiCaSchedulerApp application, String userName)
CSQueuesubmitApplicationAttempt in interface CSQueuepublic void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
throws org.apache.hadoop.security.AccessControlException
CSQueuesubmitApplication in interface CSQueueapplicationId - the applicationId of the application being submitteduserName - user who submitted the applicationqueue - queue to which the application is submittedorg.apache.hadoop.security.AccessControlExceptionpublic void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId application,
String user)
CSQueuefinishApplication in interface CSQueueuser - user who submitted the applicationpublic void finishApplicationAttempt(FiCaSchedulerApp application, String queue)
CSQueuefinishApplicationAttempt in interface CSQueuepublic void removeApplicationAttempt(FiCaSchedulerApp application, org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.User user)
public CSAssignment assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource, FiCaSchedulerNode node)
CSQueueassignContainers in interface CSQueueclusterResource - the resource of the cluster.node - node on which resources are availablepublic void completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
FiCaSchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event,
CSQueue childQueue)
CSQueuecompletedContainer in interface CSQueueclusterResource - the resource of the clusterapplication - application to which the container was assignednode - node on which the container completedrmContainer - completed container,
null if it was just a reservationcontainerStatus - ContainerStatus for the completed
containerevent - event to be sent to the containerchildQueue - CSQueue to reinsert in childQueuespublic void updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
CSQueueupdateClusterResource in interface CSQueueclusterResource - the current cluster resourcepublic QueueMetrics getMetrics()
QueuegetMetrics in interface Queuepublic void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
org.apache.hadoop.yarn.api.records.Container container)
CSQueuerecoverContainer in interface CSQueueclusterResource - the resource of the clusterapplication - the application for which the container was allocatedcontainer - the container that was recovered.public Set<FiCaSchedulerApp> getApplications()
public org.apache.hadoop.yarn.api.records.Resource getTotalResourcePending()
public void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
CSQueuecollectSchedulerApplications in interface CSQueueapps - the collection to add the applications topublic Queue.QueueLabelPolicy getLabelPolicy()
getLabelPolicy in interface QueueCopyright © 2014 Apache Software Foundation. All Rights Reserved.