org.apache.hadoop.mapreduce.v2.app.rm
Class RMContainerRequestor
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor
- All Implemented Interfaces:
- org.apache.hadoop.yarn.service.Service
- Direct Known Subclasses:
- RMContainerAllocator
public abstract class RMContainerRequestor
- extends RMCommunicator
Keeps the data structures to send container requests to RM.
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
| Methods inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator |
createSchedulerProxy, getApplicationProgress, getContext, getJob, getMaxContainerCapability, getMinContainerCapability, heartbeat, register, setShouldUnregister, setSignalled, start, startAllocatorThread, stop, unregister |
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMContainerRequestor
public RMContainerRequestor(ClientService clientService,
AppContext context)
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class RMCommunicator
makeRemoteRequest
protected org.apache.hadoop.yarn.api.records.AMResponse makeRemoteRequest()
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
computeIgnoreBlacklisting
protected void computeIgnoreBlacklisting()
containerFailedOnHost
protected void containerFailedOnHost(String hostName)
getAvailableResources
protected org.apache.hadoop.yarn.api.records.Resource getAvailableResources()
addContainerReq
protected void addContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)
decContainerReq
protected void decContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)
release
protected void release(org.apache.hadoop.yarn.api.records.ContainerId containerId)
isNodeBlacklisted
protected boolean isNodeBlacklisted(String hostname)
getFilteredContainerRequest
protected org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest getFilteredContainerRequest(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest orig)
Copyright © 2012 Apache Software Foundation. All Rights Reserved.