public class LocalTaskSchedulerService extends TaskSchedulerService
TaskSchedulerService.TaskSchedulerAppCallback| Constructor and Description |
|---|
LocalTaskSchedulerService(TaskSchedulerService.TaskSchedulerAppCallback appClient,
ContainerSignatureMatcher containerSignatureMatcher,
String appHostName,
int appHostPort,
String appTrackingUrl,
AppContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateTask(Object task,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.Priority priority,
Object containerSignature,
Object clientCookie)
Allocate affinitized to a specific container
|
void |
allocateTask(Object task,
org.apache.hadoop.yarn.api.records.Resource capability,
String[] hosts,
String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority,
Object containerSignature,
Object clientCookie) |
void |
blacklistNode(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
Object |
deallocateContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
boolean |
deallocateTask(Object task,
boolean taskSucceeded) |
org.apache.hadoop.yarn.api.records.Resource |
getAvailableResources() |
int |
getClusterNodeCount() |
org.apache.hadoop.yarn.api.records.Resource |
getTotalResources() |
boolean |
hasUnregistered() |
void |
resetMatchLocalityForAllHeldContainers() |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
void |
setShouldUnregister() |
void |
unblacklistNode(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic LocalTaskSchedulerService(TaskSchedulerService.TaskSchedulerAppCallback appClient, ContainerSignatureMatcher containerSignatureMatcher, String appHostName, int appHostPort, String appTrackingUrl, AppContext appContext)
public org.apache.hadoop.yarn.api.records.Resource getAvailableResources()
getAvailableResources in class TaskSchedulerServicepublic int getClusterNodeCount()
getClusterNodeCount in class TaskSchedulerServicepublic void resetMatchLocalityForAllHeldContainers()
resetMatchLocalityForAllHeldContainers in class TaskSchedulerServicepublic org.apache.hadoop.yarn.api.records.Resource getTotalResources()
getTotalResources in class TaskSchedulerServicepublic void blacklistNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)
blacklistNode in class TaskSchedulerServicepublic void unblacklistNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)
unblacklistNode in class TaskSchedulerServicepublic void allocateTask(Object task, org.apache.hadoop.yarn.api.records.Resource capability, String[] hosts, String[] racks, org.apache.hadoop.yarn.api.records.Priority priority, Object containerSignature, Object clientCookie)
allocateTask in class TaskSchedulerServicepublic void allocateTask(Object task, org.apache.hadoop.yarn.api.records.Resource capability, org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.Priority priority, Object containerSignature, Object clientCookie)
TaskSchedulerServiceallocateTask in class TaskSchedulerServicepublic boolean deallocateTask(Object task, boolean taskSucceeded)
deallocateTask in class TaskSchedulerServicepublic Object deallocateContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
deallocateContainer in class TaskSchedulerServicepublic void serviceInit(org.apache.hadoop.conf.Configuration conf)
serviceInit in class org.apache.hadoop.service.AbstractServicepublic void serviceStart()
serviceStart in class org.apache.hadoop.service.AbstractServicepublic void serviceStop()
throws InterruptedException
serviceStop in class org.apache.hadoop.service.AbstractServiceInterruptedExceptionpublic void setShouldUnregister()
setShouldUnregister in class TaskSchedulerServicepublic boolean hasUnregistered()
hasUnregistered in class TaskSchedulerServiceCopyright © 2014 Apache Software Foundation. All rights reserved.