@InterfaceAudience.Private public class DAGClientTimelineImpl extends DAGClient
| Modifier and Type | Class and Description |
|---|---|
protected class |
DAGClientTimelineImpl.VertexTaskStats |
| Constructor and Description |
|---|
DAGClientTimelineImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String dagId,
TezConfiguration conf,
FrameworkClient frameworkClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReportInternal() |
DAGStatus |
getDAGStatus(Set<StatusGetOpts> statusOptions)
Get the status of the specified DAG
|
String |
getExecutionContext()
Gets DAG execution context for use with logging
|
protected com.sun.jersey.api.client.Client |
getHttpClient() |
protected org.codehaus.jettison.json.JSONObject |
getJsonRootEntity(String url) |
VertexStatus |
getVertexStatus(String vertexName,
Set<StatusGetOpts> statusOptions)
Get the status of a Vertex of a DAG
|
protected Map<String,DAGClientTimelineImpl.VertexTaskStats> |
parseTaskStatsForVertexes() |
void |
tryKillDAG()
Kill a running DAG
|
DAGStatus |
waitForCompletion()
Wait for DAG to complete without printing any vertex statuses
|
DAGStatus |
waitForCompletionWithStatusUpdates(Set<StatusGetOpts> statusGetOpts)
Wait for DAG to complete and periodically print *all* vertices' status.
|
protected String baseUri
public DAGClientTimelineImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String dagId,
TezConfiguration conf,
FrameworkClient frameworkClient)
throws TezException
TezExceptionpublic String getExecutionContext()
DAGClientgetExecutionContext in class DAGClientprotected org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReportInternal()
getApplicationReportInternal in class DAGClientpublic DAGStatus getDAGStatus(@Nullable Set<StatusGetOpts> statusOptions) throws IOException, TezException
DAGClientgetDAGStatus in class DAGClientstatusOptions - Optionally, retrieve additional information based on
specified options. To retrieve basic information, this can be nullIOExceptionTezExceptionpublic VertexStatus getVertexStatus(String vertexName, Set<StatusGetOpts> statusOptions) throws IOException, TezException
DAGClientgetVertexStatus in class DAGClientstatusOptions - Optionally, retrieve additional information based on
specified optionsIOExceptionTezExceptionpublic void tryKillDAG()
throws IOException,
TezException
DAGClienttryKillDAG in class DAGClientIOExceptionTezExceptionpublic DAGStatus waitForCompletion() throws IOException, TezException, InterruptedException
DAGClientwaitForCompletion in class DAGClientIOExceptionTezExceptionInterruptedExceptionpublic DAGStatus waitForCompletionWithStatusUpdates(@Nullable Set<StatusGetOpts> statusGetOpts) throws IOException, TezException, InterruptedException
DAGClientwaitForCompletionWithStatusUpdates in class DAGClientstatusGetOpts - : status get options. For example, to get counter pass
EnumSet.of(StatusGetOpts.GET_COUNTERS)IOExceptionTezExceptionInterruptedExceptionpublic void close()
throws IOException
IOExceptionprotected Map<String,DAGClientTimelineImpl.VertexTaskStats> parseTaskStatsForVertexes() throws TezException, org.codehaus.jettison.json.JSONException
TezExceptionorg.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject getJsonRootEntity(String url) throws TezException
TezExceptionprotected com.sun.jersey.api.client.Client getHttpClient()
Copyright © 2014 Apache Software Foundation. All rights reserved.