org.apache.hadoop.mapreduce.v2.app.rm
Class RMContainerRequestor
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor
- All Implemented Interfaces:
- Closeable, RMHeartbeatHandler, org.apache.hadoop.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.service.Service |
org.apache.hadoop.service.Service.STATE |
| Methods inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator |
createSchedulerProxy, doUnregistration, getApplicationProgress, getContext, getJob, getLastHeartbeatTime, getMaxContainerCapability, heartbeat, register, runOnNextHeartbeat, serviceStart, serviceStop, setShouldUnregister, setSignalled, startAllocatorThread, unregister |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
RMContainerRequestor
public RMContainerRequestor(ClientService clientService,
AppContext context)
serviceInit
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class RMCommunicator
- Throws:
Exception
makeRemoteRequest
protected org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse makeRemoteRequest()
throws IOException
- Throws:
IOException
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)
getBlacklistedNodes
public Set<String> getBlacklistedNodes()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.