org.apache.hadoop.conf.Configurable, SubClusterResolverpublic class DefaultSubClusterResolverImpl extends AbstractSubClusterResolver implements SubClusterResolver
| Constructor | Description |
|---|---|
DefaultSubClusterResolverImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
|
SubClusterId |
getSubClusterForNode(java.lang.String nodename) |
Obtain the sub-cluster that a specified node belongs to.
|
java.util.Set<SubClusterId> |
getSubClustersForRack(java.lang.String rackname) |
Obtain the sub-clusters that have nodes on a specified rack.
|
void |
load() |
Load the nodes to subCluster mapping from the file.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
getNodeToSubCluster, getRackToSubClusterspublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic SubClusterId getSubClusterForNode(java.lang.String nodename) throws org.apache.hadoop.yarn.exceptions.YarnException
SubClusterResolvergetSubClusterForNode in interface SubClusterResolvergetSubClusterForNode in class AbstractSubClusterResolvernodename - 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 resolvedpublic void load()
SubClusterResolverload in interface SubClusterResolverpublic java.util.Set<SubClusterId> getSubClustersForRack(java.lang.String rackname) throws org.apache.hadoop.yarn.exceptions.YarnException
SubClusterResolvergetSubClustersForRack in interface SubClusterResolvergetSubClustersForRack in class AbstractSubClusterResolverrackname - 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 recognizedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.