public interface SubClusterResolver
extends org.apache.hadoop.conf.Configurable
| Modifier and Type | Method and Description |
|---|---|
SubClusterId |
getSubClusterForNode(String nodename)
Obtain the sub-cluster that a specified node belongs to.
|
Set<SubClusterId> |
getSubClustersForRack(String rackname)
Obtain the sub-clusters that have nodes on a specified rack.
|
void |
load()
Load the nodes to subCluster mapping from the file.
|
SubClusterId getSubClusterForNode(String nodename) throws org.apache.hadoop.yarn.exceptions.YarnException
nodename - the node whose sub-cluster is to be determinedSubClusterId that the
node belongs toorg.apache.hadoop.yarn.exceptions.YarnException - if the node's sub-cluster cannot be resolvedSet<SubClusterId> getSubClustersForRack(String rackname) throws org.apache.hadoop.yarn.exceptions.YarnException
rackname - the name of the rackSubClusterId that
have nodes on the given rackorg.apache.hadoop.yarn.exceptions.YarnException - if the sub-cluster of any node on the rack cannot be
resolved, or if the rack name is not recognizedvoid load()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.