@InterfaceStability.Unstable
@InterfaceAudience.Public
public interface InputInitializerContext
InputInitializer
Modifier and Type | Method and Description |
---|---|
void |
addCounters(TezCounters tezCounters)
Add custom counters
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId()
Get the YARN application id given to the Tez Application Master
|
int |
getDAGAttemptNumber() |
String |
getDAGName()
Get the name of the DAG
|
String |
getInputName()
Get the name of the input
|
UserPayload |
getInputUserPayload()
Get the user payload for 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.
|
UserPayload |
getUserPayload()
Get the user payload for the initializer
|
org.apache.hadoop.conf.Configuration |
getVertexConfiguration()
Get vertex configuration
|
int |
getVertexId()
Get the vertex id as integer that belongs to this input.
|
int |
getVertexNumTasks(String vertexName)
Get the number of tasks in the given vertex
|
org.apache.hadoop.yarn.api.records.Resource |
getVertexTaskResource()
Get the resource allocated to a task of this vertex
|
void |
registerForVertexStateUpdates(String vertexName,
Set<VertexState> stateSet)
Register to get notifications on updates to the specified vertex.
|
org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
String getDAGName()
org.apache.hadoop.conf.Configuration getVertexConfiguration()
String getInputName()
UserPayload getInputUserPayload()
UserPayload getUserPayload()
int getNumTasks()
org.apache.hadoop.yarn.api.records.Resource getVertexTaskResource()
int getVertexId()
org.apache.hadoop.yarn.api.records.Resource getTotalAvailableResource()
int getNumClusterNodes()
int getDAGAttemptNumber()
int getVertexNumTasks(String vertexName)
vertexName
- void registerForVertexStateUpdates(String vertexName, @Nullable Set<VertexState> stateSet)
InputInitializer.onVertexStateUpdated(org.apache.tez.dag.api.event.VertexStateUpdate)
This method can only be invoked once. Duplicate invocations will result in an error.vertexName
- the vertex name for which notifications are required.stateSet
- the set of states for which notifications are required. null implies allvoid addCounters(TezCounters tezCounters)
tezCounters
- counters to addCopyright © 2024 Apache Software Foundation. All rights reserved.