org.apache.tez.runtime.api
Interface TezRootInputInitializerContext


public interface TezRootInputInitializerContext


Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
          Get the YARN application id given to the Tez Application Master
 String getDAGName()
          Get the name of the DAG
 String getInputName()
          Get the name of the input
 int getNumClusterNodes()
          Get the number of nodes in the cluster
 int getNumTasks()
          Get the number of tasks in this vertex.
 org.apache.hadoop.yarn.api.records.Resource getTotalAvailableResource()
          Get the total resource allocated to this vertex.
 byte[] getUserPayload()
          Get the user payload
 org.apache.hadoop.yarn.api.records.Resource getVertexTaskResource()
          Get the resource allocated to a task of this vertex
 

Method Detail

getApplicationId

org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
Get the YARN application id given to the Tez Application Master

Returns:
Application id

getDAGName

String getDAGName()
Get the name of the DAG

Returns:
DAG name

getInputName

String getInputName()
Get the name of the input

Returns:
Input name

getUserPayload

byte[] getUserPayload()
Get the user payload

Returns:
User payload

getNumTasks

int getNumTasks()
Get the number of tasks in this vertex. Maybe -1 if the vertex has not been initialized with a pre-determined number of tasks.

Returns:
number of tasks

getVertexTaskResource

org.apache.hadoop.yarn.api.records.Resource getVertexTaskResource()
Get the resource allocated to a task of this vertex

Returns:
Resource

getTotalAvailableResource

org.apache.hadoop.yarn.api.records.Resource getTotalAvailableResource()
Get the total resource allocated to this vertex. If the DAG is running in a busy cluster then it may have no resources available dedicated to it. The DAG may divide its resources among member vertices.

Returns:
Resource

getNumClusterNodes

int getNumClusterNodes()
Get the number of nodes in the cluster

Returns:
Number of nodes


Copyright © 2014 Apache Software Foundation. All rights reserved.