org.apache.tez.dag.api
Class DAG

java.lang.Object
  extended by org.apache.tez.dag.api.DAG

public class DAG
extends Object


Constructor Summary
DAG(String name)
           
 
Method Summary
 DAG addEdge(Edge edge)
           
 DAG addEdge(GroupInputEdge edge)
           
 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)
           
 DAGProtos.DAGPlan createDag(org.apache.hadoop.conf.Configuration dagConf)
           
 VertexGroup createVertexGroup(String name, Vertex... members)
           
 org.apache.hadoop.security.Credentials getCredentials()
           
 String getName()
           
 Collection<URI> getURIsForCredentials()
           
 Vertex getVertex(String vertexName)
           
 Set<Vertex> getVertices()
           
 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.
 void verify()
           
 void verify(boolean restricted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAG

public DAG(String name)
Method Detail

addVertex

public DAG addVertex(Vertex vertex)

getVertex

public Vertex getVertex(String vertexName)

setCredentials

public 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. A combination of this and addURIsForCredentials should be used to specify information about all credentials required by a DAG. AM specific credentials are not used when executing a DAG. Set credentials which will be required to run this dag. This method can be used if the client has already obtained some or all of the required credentials.

Parameters:
credentials - Credentials for the DAG
Returns:
this

createVertexGroup

public VertexGroup createVertexGroup(String name,
                                     Vertex... members)

getCredentials

@InterfaceAudience.Private
public org.apache.hadoop.security.Credentials getCredentials()

addURIsForCredentials

public 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. A combination of this and setCredentials should be used to specify information about all credentials required by a DAG. AM specific credentials are not used when executing a DAG. This method can be used to specify a list of URIs for which Credentials need to be obtained so that the job can run. An incremental list of URIs can be provided by making multiple calls to the method. Currently, credentials can only be fetched for HDFS and other FileSystem implementations.

Parameters:
uris - a list of URIs
Returns:
the DAG instance being used

getURIsForCredentials

@InterfaceAudience.Private
public Collection<URI> getURIsForCredentials()
Returns:
an unmodifiable list representing the URIs for which credentials are required.

getVertices

@InterfaceAudience.Private
public Set<Vertex> getVertices()

addEdge

public DAG addEdge(Edge edge)

addEdge

public DAG addEdge(GroupInputEdge edge)

getName

public String getName()

verify

public void verify()
            throws IllegalStateException
Throws:
IllegalStateException

verify

public void verify(boolean restricted)
            throws IllegalStateException
Throws:
IllegalStateException

createDag

@InterfaceAudience.Private
public DAGProtos.DAGPlan createDag(org.apache.hadoop.conf.Configuration dagConf)


Copyright © 2014 Apache Software Foundation. All rights reserved.