public class DAGImpl extends Object implements DAG, org.apache.hadoop.yarn.event.EventHandler<DAGEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
DAGImpl.OutputKey |
static class |
DAGImpl.StartTransition |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.yarn.state.StateMachineFactory<DAGImpl,DAGState,DAGEventType,DAGEvent> |
stateMachineFactory |
| Constructor and Description |
|---|
DAGImpl(org.apache.tez.dag.records.TezDAGID dagId,
org.apache.hadoop.conf.Configuration amConf,
org.apache.tez.dag.api.records.DAGProtos.DAGPlan jobPlan,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskCommunicatorManagerInterface taskCommunicatorManagerInterface,
org.apache.hadoop.security.Credentials dagCredentials,
org.apache.hadoop.yarn.util.Clock clock,
String appUserName,
TaskHeartbeatHandler thh,
AppContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
constructFinalFullcounters() |
org.apache.tez.common.security.ACLManager |
getACLManager() |
org.apache.tez.common.counters.TezCounters |
getAllCounters()
Get all the counters of this DAG.
|
org.apache.tez.common.counters.TezCounters |
getCachedCounters() |
float |
getCompletedTaskProgress() |
org.apache.hadoop.conf.Configuration |
getConf() |
org.apache.hadoop.security.Credentials |
getCredentials() |
DAGStatusBuilder |
getDAGStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions) |
DAGStatusBuilder |
getDAGStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions,
long timeoutMillis) |
org.apache.hadoop.security.UserGroupInformation |
getDagUGI() |
org.apache.tez.dag.api.Vertex.VertexExecutionContext |
getDefaultExecutionContext() |
List<String> |
getDiagnostics() |
org.apache.hadoop.yarn.event.EventHandler |
getEventHandler() |
org.apache.tez.dag.records.TezDAGID |
getID() |
int |
getIndex() |
DAGState |
getInternalState() |
org.apache.tez.dag.api.records.DAGProtos.DAGPlan |
getJobPlan() |
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalResources() |
String |
getName() |
float |
getProgress() |
DAGReport |
getReport() |
long |
getStartTime() |
DAGState |
getState() |
StateChangeNotifier |
getStateChangeNotifier() |
protected org.apache.hadoop.yarn.state.StateMachine<DAGState,DAGEventType,DAGEvent> |
getStateMachine() |
int |
getSuccessfulVertices() |
TaskImpl |
getTask(org.apache.tez.dag.records.TezTaskID tId) |
TaskAttemptImpl |
getTaskAttempt(org.apache.tez.dag.records.TezTaskAttemptID taId) |
int |
getTotalVertices() |
String |
getUserName() |
Vertex |
getVertex(String vertexName)
Get Vertex by vertex name
|
Vertex |
getVertex(org.apache.tez.dag.records.TezVertexID vertexID) |
BitSet |
getVertexDescendants(int vertexIndex) |
Map<String,org.apache.tez.dag.records.TezVertexID> |
getVertexNameIDMapping() |
VertexStatusBuilder |
getVertexStatus(String vertexName,
Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions) |
Map<org.apache.tez.dag.records.TezVertexID,Vertex> |
getVertices() |
void |
handle(DAGEvent event) |
static org.apache.tez.common.counters.TezCounters |
incrTaskCounters(org.apache.tez.common.counters.TezCounters counters,
Collection<Vertex> vertices) |
protected void |
initializeVerticesAndStart() |
boolean |
isComplete() |
boolean |
isUber() |
protected static final org.apache.hadoop.yarn.state.StateMachineFactory<DAGImpl,DAGState,DAGEventType,DAGEvent> stateMachineFactory
public DAGImpl(org.apache.tez.dag.records.TezDAGID dagId,
org.apache.hadoop.conf.Configuration amConf,
org.apache.tez.dag.api.records.DAGProtos.DAGPlan jobPlan,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskCommunicatorManagerInterface taskCommunicatorManagerInterface,
org.apache.hadoop.security.Credentials dagCredentials,
org.apache.hadoop.yarn.util.Clock clock,
String appUserName,
TaskHeartbeatHandler thh,
AppContext appContext)
protected org.apache.hadoop.yarn.state.StateMachine<DAGState,DAGEventType,DAGEvent> getStateMachine()
public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getLocalResources()
getLocalResources in interface DAGpublic org.apache.hadoop.conf.Configuration getConf()
public org.apache.tez.dag.api.records.DAGProtos.DAGPlan getJobPlan()
getJobPlan in interface DAGpublic org.apache.hadoop.yarn.event.EventHandler getEventHandler()
getEventHandler in interface DAGpublic Vertex getVertex(org.apache.tez.dag.records.TezVertexID vertexID)
public org.apache.hadoop.security.Credentials getCredentials()
getCredentials in interface org.apache.tez.serviceplugins.api.DagInfopublic org.apache.hadoop.security.UserGroupInformation getDagUGI()
public org.apache.tez.common.security.ACLManager getACLManager()
getACLManager in interface DAGpublic Map<String,org.apache.tez.dag.records.TezVertexID> getVertexNameIDMapping()
getVertexNameIDMapping in interface DAGpublic long getStartTime()
getStartTime in interface DAGpublic StateChangeNotifier getStateChangeNotifier()
getStateChangeNotifier in interface DAGpublic org.apache.tez.dag.api.Vertex.VertexExecutionContext getDefaultExecutionContext()
getDefaultExecutionContext in interface DAGpublic org.apache.tez.common.counters.TezCounters getAllCounters()
DAGgetAllCounters in interface DAGpublic org.apache.tez.common.counters.TezCounters getCachedCounters()
getCachedCounters in interface DAGpublic static org.apache.tez.common.counters.TezCounters incrTaskCounters(org.apache.tez.common.counters.TezCounters counters,
Collection<Vertex> vertices)
public List<String> getDiagnostics()
getDiagnostics in interface DAGpublic float getProgress()
getProgress in interface DAGpublic float getCompletedTaskProgress()
getCompletedTaskProgress in interface DAGpublic Map<org.apache.tez.dag.records.TezVertexID,Vertex> getVertices()
getVertices in interface DAGpublic DAGStatusBuilder getDAGStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions)
getDAGStatus in interface DAGpublic DAGStatusBuilder getDAGStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions, long timeoutMillis) throws org.apache.tez.dag.api.TezException
getDAGStatus in interface DAGorg.apache.tez.dag.api.TezExceptionpublic VertexStatusBuilder getVertexStatus(String vertexName, Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions)
getVertexStatus in interface DAGpublic TaskAttemptImpl getTaskAttempt(org.apache.tez.dag.records.TezTaskAttemptID taId)
public TaskImpl getTask(org.apache.tez.dag.records.TezTaskID tId)
protected void initializeVerticesAndStart()
public void handle(DAGEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<DAGEvent>@InterfaceAudience.Private public DAGState getInternalState()
public String getUserName()
getUserName in interface DAGpublic int getIndex()
getIndex in interface org.apache.tez.serviceplugins.api.DagInfopublic String getName()
public int getTotalVertices()
getTotalVertices in interface org.apache.tez.serviceplugins.api.DagInfopublic BitSet getVertexDescendants(int vertexIndex)
getVertexDescendants in interface org.apache.tez.serviceplugins.api.DagInfopublic int getSuccessfulVertices()
getSuccessfulVertices in interface DAGpublic Vertex getVertex(String vertexName)
DAG@InterfaceAudience.Private public void constructFinalFullcounters()
public boolean isComplete()
isComplete in interface DAGCopyright © 2019 Apache Software Foundation. All rights reserved.