public class DAGAppMaster
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class and Description |
|---|---|
protected class |
DAGAppMaster.DAGAppMasterShutdownHandler |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isLastAMRetry |
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the DAGAppMaster shutdown hook.
|
protected DAGAppMaster.DAGAppMasterShutdownHandler |
shutdownHandler |
| Constructor and Description |
|---|
DAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nmHost,
int nmPort,
int nmHttpPort,
org.apache.hadoop.yarn.util.Clock clock,
long appSubmitTime,
boolean isSession,
String workingDirectory,
String[] localDirs,
String[] logDirs,
String clientVersion,
org.apache.hadoop.security.Credentials credentials,
String jobUserName,
DAGProtos.AMPluginDescriptorProto pluginDescriptorProto) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final int SHUTDOWN_HOOK_PRIORITY
protected DAGAppMaster.DAGAppMasterShutdownHandler shutdownHandler
protected boolean isLastAMRetry
public DAGAppMaster(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String nmHost,
int nmPort,
int nmHttpPort,
org.apache.hadoop.yarn.util.Clock clock,
long appSubmitTime,
boolean isSession,
String workingDirectory,
String[] localDirs,
String[] logDirs,
String clientVersion,
org.apache.hadoop.security.Credentials credentials,
String jobUserName,
DAGProtos.AMPluginDescriptorProto pluginDescriptorProto)
public static String getRunningLogURL(String nodeHttpAddress, String containerId, String user)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void initClientRpcServer()
protected DAGAppMaster.DAGAppMasterShutdownHandler createShutdownHandler()
protected TaskSchedulerManager createTaskSchedulerManager(List<NamedEntityDescriptor> taskSchedulerDescriptors)
protected ContainerSignatureMatcher createContainerSignatureMatcher()
protected AsyncDispatcher createDispatcher()
protected HistoryEventHandler createHistoryEventHandler(AppContext appContext)
protected void sysexit()
protected TaskSchedulerManager getTaskSchedulerManager()
protected void handle(DAGAppMasterEvent event)
public void setCurrentDAG(DAG currentDAG)
public ACLManager getACLManager()
protected DAG createDAG(DAGProtos.DAGPlan dagPB)
protected void addIfService(Object object, boolean addDispatcher)
protected TaskCommunicatorManagerInterface createTaskCommunicatorManager(AppContext context, TaskHeartbeatHandler thh, ContainerHeartbeatHandler chh, List<NamedEntityDescriptor> entityDescriptors) throws TezException
TezExceptionprotected TaskHeartbeatHandler createTaskHeartbeatHandler(AppContext context, org.apache.hadoop.conf.Configuration conf)
protected ContainerHeartbeatHandler createContainerHeartbeatHandler(AppContext context, org.apache.hadoop.conf.Configuration conf)
protected ContainerLauncherManager createContainerLauncherManager(List<NamedEntityDescriptor> containerLauncherDescriptors, boolean isLocal) throws UnknownHostException, TezException
UnknownHostExceptionTezExceptionpublic org.apache.hadoop.yarn.api.records.ApplicationId getAppID()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptID()
public int getStartCount()
public AppContext getContext()
public org.apache.hadoop.yarn.event.Dispatcher getDispatcher()
public ContainerLauncherManager getContainerLauncherManager()
public TaskCommunicatorManagerInterface getTaskCommunicatorManager()
public org.apache.hadoop.yarn.api.records.ContainerId getAppContainerId()
public String getAppNMHost()
public int getAppNMPort()
public int getAppNMHttpPort()
public int getRpcPort()
public DAGAppMasterState getState()
public float getProgress()
public void shutdownTezAM(String dagKillmessage) throws TezException
TezExceptionpublic String submitDAGToAppMaster(DAGProtos.DAGPlan dagPlan, Map<String,org.apache.hadoop.yarn.api.records.LocalResource> additionalResources) throws TezException
TezExceptionpublic void tryKillDAG(DAG dag, String message) throws TezException
TezExceptionpublic void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic boolean isSession()
public static void main(String[] args)
public static void initAndStartAppMaster(DAGAppMaster appMaster, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void parsePlugin(List<NamedEntityDescriptor> resultList, com.google.common.collect.BiMap<String,Integer> pluginMap, List<DAGProtos.TezNamedEntityDescriptorProto> namedEntityDescriptorProtos, boolean tezYarnEnabled, boolean uberEnabled, UserPayload defaultPayload)
Copyright © 2021 Apache Software Foundation. All rights reserved.