@InterfaceAudience.Public @InterfaceStability.Evolving public class TaskLocationHint extends Object
Modifier and Type | Method and Description |
---|---|
static TaskLocationHint |
createTaskLocationHint(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Provide a location hint using a container to which the task may be affinitized
Tez will try to run the task on that container or node local to it
|
static TaskLocationHint |
createTaskLocationHint(Set<String> hosts,
Set<String> racks)
Provides a location hint with nodes and racks at which the task may be executed.
|
boolean |
equals(Object obj) |
org.apache.hadoop.yarn.api.records.ContainerId |
getAffinitizedContainer() |
Set<String> |
getHosts() |
Set<String> |
getRacks() |
int |
hashCode() |
public static TaskLocationHint createTaskLocationHint(org.apache.hadoop.yarn.api.records.ContainerId containerId)
public static TaskLocationHint createTaskLocationHint(Set<String> hosts, Set<String> racks)
public org.apache.hadoop.yarn.api.records.ContainerId getAffinitizedContainer()
Copyright © 2014 Apache Software Foundation. All rights reserved.