@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.
|
String |
getName()
Get the DAG name
|
Vertex |
getVertex(String vertexName) |
DAG |
setAccessControls(DAGAccessControls accessControls)
Set Access controls for the DAG.
|
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)
Set description info for this DAG that can be used for visualization purposes.
|
public static DAG create(String name)
name - the name of the DAGDAGpublic 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.DAGpublic DAG setCredentials(org.apache.hadoop.security.Credentials credentials)
credentials - Credentials for the DAGDAGpublic 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.DAGpublic VertexGroup createVertexGroup(String name, Vertex... members)
public DAG setAccessControls(DAGAccessControls accessControls)
accessControls - Access ControlsDAGpublic 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 addedDAGpublic DAG addEdge(GroupInputEdge edge)
GroupInputEdge to the DAG.edge - GroupInputEdgeDAGpublic String getName()
Copyright © 2014 Apache Software Foundation. All rights reserved.