@InterfaceAudience.Public public class DAG extends Object
Modifier and Type | Method and Description |
---|---|
DAG |
addEdge(Edge edge)
Add an
Edge connecting vertices in the DAG |
DAG |
addEdge(GroupInputEdge edge)
Add a
GroupInputEdge to the DAG. |
DAG |
addTaskLocalFiles(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localFiles)
Set the files etc that must be provided to the tasks of this DAG
|
DAG |
addURIsForCredentials(Collection<URI> uris)
One of the methods that can be used to provide information about required
Credentials when running on a secure cluster.
|
DAG |
addVertex(Vertex vertex) |
static DAG |
create(String name)
Create a DAG with the specified name.
|
VertexGroup |
createVertexGroup(String name,
Vertex... members)
Create a group of vertices that share a common output.
|
CallerContext |
getCallerContext() |
String |
getName()
Get the DAG name
|
Vertex |
getVertex(String vertexName) |
DAG |
setAccessControls(DAGAccessControls accessControls)
Set Access controls for the DAG.
|
DAG |
setCallerContext(CallerContext callerContext)
Set the Context in which Tez is being called.
|
DAG |
setConf(String property,
String value)
This is currently used to setup additional configuration parameters which will be available
in the DAG configuration used in the AppMaster.
|
DAG |
setCredentials(org.apache.hadoop.security.Credentials credentials)
One of the methods that can be used to provide information about required
Credentials when running on a secure cluster.
|
DAG |
setDAGInfo(String dagInfo)
Deprecated.
|
DAG |
setExecutionContext(Vertex.VertexExecutionContext vertexExecutionContext)
Sets the default execution context for the DAG.
|
DAG |
setHistoryLogLevel(HistoryLogLevel historyLogLevel)
Set history log level for this DAG.
|
public static DAG create(String name)
name
- the name of the DAGDAG
public DAG addTaskLocalFiles(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localFiles)
localFiles
- files that must be available locally for each task. These files
may be regular files, archives etc. as specified by the value
elements of the map.DAG
public DAG setCredentials(org.apache.hadoop.security.Credentials credentials)
credentials
- Credentials for the DAGDAG
@Deprecated public DAG setDAGInfo(String dagInfo)
dagInfo
- JSON blob as a serialized string.
Recognized keys by the UI are:
"context" - The application context in which this DAG is being used.
For example, this could be set to "Hive" or "Pig" if
this is being run as part of a Hive or Pig script.
"description" - General description on what this DAG is going to do.
In the case of Hive, this could be the SQL query text.DAG
public DAG setCallerContext(CallerContext callerContext)
callerContext
- Caller ContextDAG
public VertexGroup createVertexGroup(String name, Vertex... members)
public DAG setAccessControls(DAGAccessControls accessControls)
accessControls
- Access ControlsDAG
public DAG addURIsForCredentials(Collection<URI> uris)
FileSystem
implementations that support
credentials.public DAG addEdge(Edge edge)
Edge
connecting vertices in the DAGedge
- The edge to be addedDAG
public DAG addEdge(GroupInputEdge edge)
GroupInputEdge
to the DAG.edge
- GroupInputEdge
DAG
public String getName()
@InterfaceStability.Unstable public DAG setConf(String property, String value)
property
- the property namevalue
- the value for the propertypublic DAG setHistoryLogLevel(HistoryLogLevel historyLogLevel)
historyLogLevel
- The ATS history log level for this DAG.@InterfaceAudience.Public @InterfaceStability.Unstable public DAG setExecutionContext(Vertex.VertexExecutionContext vertexExecutionContext)
Vertex.setExecutionContext(VertexExecutionContext)
vertexExecutionContext
- the default execution context for the DAGpublic CallerContext getCallerContext()
Copyright © 2024 Apache Software Foundation. All rights reserved.