|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue
@InterfaceAudience.Private @InterfaceStability.Evolving public class ParentQueue
| Field Summary | |
|---|---|
protected Set<CSQueue> |
childQueues
|
| Constructor Summary | |
|---|---|
ParentQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
|
|
| Method Summary | |
|---|---|
CSAssignment |
assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerNode node,
boolean needToUnreserve)
Assign containers to applications in the queue or it's children (if any). |
void |
attachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
Attach a container to this queue |
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 completedChildQueue,
boolean sortQueues)
A container assigned to the queue has completed. |
void |
detachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
Detach a container from this queue |
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 |
getAbsActualCapacity()
Get actual capacity of the queue, this may be different from configured capacity when mis-config take place, like add labels to the cluster |
ActiveUsersManager |
getActiveUsersManager()
Get the ActiveUsersManager for the queue. |
List<CSQueue> |
getChildQueues()
Get child queues |
int |
getNumApplications()
Get the number of applications in the queue. |
org.apache.hadoop.yarn.api.records.QueueInfo |
getQueueInfo(boolean includeChildQueues,
boolean recursive)
Get queue information |
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. |
void |
recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt attempt,
RMContainer rmContainer)
Recover the state of the queue for a given container. |
void |
reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue. |
void |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String user,
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 |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue |
|---|
getAbsoluteCapacity, getAbsoluteCapacityByNodeLabel, getAbsoluteMaximumCapacity, getAbsoluteMaximumCapacityByNodeLabel, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityByNodeLabel, getDefaultNodeLabelExpression, getMaximumAllocation, getMaximumCapacity, getMetrics, getMinimumAllocation, getNumContainers, getParent, getQueueName, getReservationContinueLooking, getState, getUsedCapacity, getUsedResources, hasAccess, releaseResource, setAbsoluteUsedCapacity, setParent, setUsedCapacity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Set<CSQueue> childQueues
| Constructor Detail |
|---|
public ParentQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
throws IOException
IOException| Method Detail |
|---|
public String getQueuePath()
CSQueue
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
boolean recursive)
Queue
includeChildQueues - 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.
user - username
public String toString()
toString in class Object
public void reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
throws IOException
CSQueue
newlyParsedQueue - new queue to re-initalize fromclusterResource - resources in the cluster
IOException
public void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String user,
String queue)
throws org.apache.hadoop.security.AccessControlException
CSQueue
applicationId - the applicationId of the application being submitteduser - user who submitted the applicationqueue - queue to which the application is submitted
org.apache.hadoop.security.AccessControlException
public void submitApplicationAttempt(FiCaSchedulerApp application,
String userName)
CSQueue
public void finishApplicationAttempt(FiCaSchedulerApp application,
String queue)
CSQueue
public void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId application,
String user)
CSQueue
user - user who submitted the application
public CSAssignment assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerNode node,
boolean needToUnreserve)
CSQueue
clusterResource - the resource of the cluster.node - node on which resources are availableneedToUnreserve - assign container only if it can unreserve one first
public 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 completedChildQueue,
boolean sortQueues)
CSQueue
clusterResource - 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 containercompletedChildQueue - CSQueue to reinsert in childQueuessortQueues - indicates whether it should re-sort the queuespublic void updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
CSQueue
clusterResource - the current cluster resourcepublic List<CSQueue> getChildQueues()
CSQueue
public void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt attempt,
RMContainer rmContainer)
Queue
clusterResource - the resource of the clusterattempt - the application for which the container was allocatedrmContainer - the container that was recovered.public ActiveUsersManager getActiveUsersManager()
CSQueueActiveUsersManager for the queue.
ActiveUsersManager for the queuepublic void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
CSQueue
apps - the collection to add the applications to
public void attachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
CSQueue
clusterResource - the current cluster resourceapplication - application to which the container was assignedrmContainer - the container to attach
public void detachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
CSQueue
clusterResource - the current cluster resourceapplication - application to which the container was assignedrmContainer - the container to detachpublic float getAbsActualCapacity()
CSQueue
getAbsActualCapacity in interface CSQueuegetAbsActualCapacity in class AbstractCSQueuepublic int getNumApplications()
CSQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||