@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Evolving public class FifoScheduler extends Object implements ResourceScheduler, Configurable
| Modifier and Type | Field and Description |
|---|---|
protected Map<ApplicationAttemptId,FiCaSchedulerApp> |
applications |
| Constructor and Description |
|---|
FifoScheduler() |
| Modifier and Type | Method and Description |
|---|---|
Allocation |
allocate(ApplicationAttemptId applicationAttemptId,
List<ResourceRequest> ask,
List<ContainerId> release,
List<String> blacklistAdditions,
List<String> blacklistRemovals)
The main api between the ApplicationMaster and the Scheduler.
|
boolean |
checkAccess(UserGroupInformation callerUGI,
QueueACL acl,
String queueName)
Check if the user has permission to perform the operation.
|
Configuration |
getConf()
Return the configuration used by this object.
|
Resource |
getMaximumResourceCapability()
Get maximum allocatable
Resource. |
Resource |
getMinimumResourceCapability()
Get minimum allocatable
Resource. |
SchedulerNodeReport |
getNodeReport(NodeId nodeId)
Get node resource usage report.
|
int |
getNumClusterNodes()
Get the number of nodes available in the cluster.
|
QueueInfo |
getQueueInfo(String queueName,
boolean includeChildQueues,
boolean recursive)
Get queue information
|
List<QueueUserACLInfo> |
getQueueUserAclInfo()
Get acls for queues for current user.
|
QueueMetrics |
getRootQueueMetrics()
Get the root queue for the scheduler.
|
SchedulerAppReport |
getSchedulerAppInfo(ApplicationAttemptId applicationAttemptId)
Get the Scheduler app for a given app attempt Id.
|
void |
handle(SchedulerEvent event) |
void |
recover(RMStateStore.RMState state) |
void |
reinitialize(Configuration conf,
RMContext rmContext)
Re-initialize the
ResourceScheduler. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
protected Map<ApplicationAttemptId,FiCaSchedulerApp> applications
public void setConf(Configuration conf)
ConfigurablesetConf in interface Configurablepublic Configuration getConf()
ConfigurablegetConf in interface Configurablepublic Resource getMinimumResourceCapability()
YarnSchedulerResource.getMinimumResourceCapability in interface YarnSchedulerpublic int getNumClusterNodes()
YarnSchedulergetNumClusterNodes in interface YarnSchedulerpublic Resource getMaximumResourceCapability()
YarnSchedulerResource.getMaximumResourceCapability in interface YarnSchedulerpublic void reinitialize(Configuration conf, RMContext rmContext) throws IOException
ResourceSchedulerResourceScheduler.reinitialize in interface ResourceSchedulerconf - configurationIOExceptionpublic Allocation allocate(ApplicationAttemptId applicationAttemptId, List<ResourceRequest> ask, List<ContainerId> release, List<String> blacklistAdditions, List<String> blacklistRemovals)
YarnSchedulerallocate in interface YarnSchedulerAllocation for the applicationpublic SchedulerAppReport getSchedulerAppInfo(ApplicationAttemptId applicationAttemptId)
YarnSchedulergetSchedulerAppInfo in interface YarnSchedulerapplicationAttemptId - the id of the application attemptpublic void handle(SchedulerEvent event)
handle in interface EventHandler<SchedulerEvent>public QueueInfo getQueueInfo(String queueName, boolean includeChildQueues, boolean recursive)
YarnSchedulergetQueueInfo in interface YarnSchedulerqueueName - queue nameincludeChildQueues - include child queues?recursive - get children queues?public List<QueueUserACLInfo> getQueueUserAclInfo()
YarnSchedulergetQueueUserAclInfo in interface YarnSchedulerpublic void recover(RMStateStore.RMState state)
recover in interface Recoverablepublic SchedulerNodeReport getNodeReport(NodeId nodeId)
YarnSchedulergetNodeReport in interface YarnSchedulerSchedulerNodeReport for the node or null
if nodeId does not point to a defined node.public QueueMetrics getRootQueueMetrics()
YarnSchedulergetRootQueueMetrics in interface YarnSchedulerpublic boolean checkAccess(UserGroupInformation callerUGI, QueueACL acl, String queueName)
YarnSchedulerQueueACL.ADMINISTER_QUEUE permission,
this user can view/modify the applications in this queuecheckAccess in interface YarnSchedulertrue if the user has the permission,
false otherwiseCopyright © 2013 Apache Software Foundation. All rights reserved.