@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. 
 | 
DAGProtos.DAGPlan | 
createDag(org.apache.hadoop.conf.Configuration tezConf,
         org.apache.hadoop.security.Credentials extraCredentials,
         Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources,
         org.apache.hadoop.yarn.api.records.LocalResource binaryConfig,
         boolean tezLrsAsArchive)  | 
DAGProtos.DAGPlan | 
createDag(org.apache.hadoop.conf.Configuration tezConf,
         org.apache.hadoop.security.Credentials extraCredentials,
         Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources,
         org.apache.hadoop.yarn.api.records.LocalResource binaryConfig,
         boolean tezLrsAsArchive,
         Map<String,String> additionalConfigs,
         ServicePluginsDescriptor servicePluginsDescriptor,
         JavaOptsChecker javaOptsChecker)  | 
VertexGroup | 
createVertexGroup(String name,
                 Vertex... members)
Create a group of vertices that share a common output. 
 | 
CallerContext | 
getCallerContext()  | 
org.apache.hadoop.security.Credentials | 
getCredentials()  | 
DAGAccessControls | 
getDagAccessControls()  | 
Map<String,String> | 
getDagConf()  | 
String | 
getName()
Get the DAG name 
 | 
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> | 
getTaskLocalFiles()  | 
Collection<URI> | 
getURIsForCredentials()  | 
Vertex | 
getVertex(String vertexName)  | 
Set<Vertex> | 
getVertices()  | 
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. 
 | 
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 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.DAGpublic DAG setCallerContext(CallerContext callerContext)
callerContext - Caller ContextDAGpublic VertexGroup createVertexGroup(String name, Vertex... members)
@InterfaceAudience.Private public org.apache.hadoop.security.Credentials getCredentials()
public DAG setAccessControls(DAGAccessControls accessControls)
accessControls - Access ControlsDAG@InterfaceAudience.Private public DAGAccessControls getDagAccessControls()
public DAG addURIsForCredentials(Collection<URI> uris)
FileSystem implementations that support
 credentials.@InterfaceAudience.Private public Collection<URI> getURIsForCredentials()
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()
@InterfaceStability.Unstable public DAG setConf(String property, String value)
property - the property namevalue - the value for the property@InterfaceAudience.Public @InterfaceStability.Unstable public DAG setExecutionContext(Vertex.VertexExecutionContext vertexExecutionContext)
Vertex.setExecutionContext(VertexExecutionContext)vertexExecutionContext - the default execution context for the DAG@InterfaceAudience.Private public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getTaskLocalFiles()
@InterfaceAudience.Private public DAGProtos.DAGPlan createDag(org.apache.hadoop.conf.Configuration tezConf, org.apache.hadoop.security.Credentials extraCredentials, Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources, org.apache.hadoop.yarn.api.records.LocalResource binaryConfig, boolean tezLrsAsArchive)
@InterfaceAudience.Private public DAGProtos.DAGPlan createDag(org.apache.hadoop.conf.Configuration tezConf, org.apache.hadoop.security.Credentials extraCredentials, Map<String,org.apache.hadoop.yarn.api.records.LocalResource> tezJarResources, org.apache.hadoop.yarn.api.records.LocalResource binaryConfig, boolean tezLrsAsArchive, Map<String,String> additionalConfigs, ServicePluginsDescriptor servicePluginsDescriptor, JavaOptsChecker javaOptsChecker)
public CallerContext getCallerContext()
Copyright © 2016 Apache Software Foundation. All rights reserved.