org.apache.tez.client
Class TezClient

java.lang.Object
  extended by org.apache.tez.client.TezClient

public class TezClient
extends Object


Constructor Summary
TezClient(TezConfiguration conf)
           Create an instance of the TezClient which will be used to communicate with a specific instance of YARN, or TezService when that exists.
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationId createApplication()
          Create a new YARN application
 DAGClient getDAGClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
           
 DAGClient submitDAGApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId, DAG dag, AMConfiguration amConfig)
           
 DAGClient submitDAGApplication(DAG dag, AMConfiguration amConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TezClient

public TezClient(TezConfiguration conf)

Create an instance of the TezClient which will be used to communicate with a specific instance of YARN, or TezService when that exists.

Separate instances of TezClient should be created to communicate with different instances of YARN

Parameters:
conf - the configuration which will be used to establish which YARN or Tez service instance this client is associated with.
Method Detail

submitDAGApplication

public DAGClient submitDAGApplication(DAG dag,
                                      AMConfiguration amConfig)
                               throws TezException,
                                      IOException
Throws:
TezException
IOException

submitDAGApplication

@InterfaceAudience.Private
public DAGClient submitDAGApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                                                                DAG dag,
                                                                AMConfiguration amConfig)
                               throws TezException,
                                      IOException
Throws:
TezException
IOException

createApplication

public org.apache.hadoop.yarn.api.records.ApplicationId createApplication()
                                                                   throws TezException,
                                                                          IOException
Create a new YARN application

Returns:
ApplicationId for the new YARN application
Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException
TezException

getDAGClient

@InterfaceAudience.Private
public DAGClient getDAGClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
                       throws IOException,
                              TezException
Throws:
IOException
TezException


Copyright © 2014 Apache Software Foundation. All rights reserved.