OrderedResolverpublic class AvailableSpaceResolver extends RouterResolver<java.lang.String,org.apache.hadoop.hdfs.server.federation.resolver.order.AvailableSpaceResolver.SubclusterAvailableSpace>
| Modifier and Type | Field | Description |
|---|---|---|
static float |
BALANCER_PREFERENCE_DEFAULT |
|
static java.lang.String |
BALANCER_PREFERENCE_KEY |
Increases chance of files on subcluster with more available space.
|
MIN_UPDATE_PERIOD_KEY| Constructor | Description |
|---|---|
AvailableSpaceResolver(org.apache.hadoop.conf.Configuration conf,
Router routerService) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
chooseFirstNamespace(java.lang.String path,
PathLocation loc) |
Choose the first namespace from queried subcluster mapping info.
|
protected java.util.Map<java.lang.String,org.apache.hadoop.hdfs.server.federation.resolver.order.AvailableSpaceResolver.SubclusterAvailableSpace> |
getSubclusterInfo(MembershipStore membershipStore) |
Get the mapping from NamespaceId to subcluster space info.
|
getFirstNamespace, getMembershipStore, getRpcServer, getSubclusterMappingpublic static final java.lang.String BALANCER_PREFERENCE_KEY
public static final float BALANCER_PREFERENCE_DEFAULT
public AvailableSpaceResolver(org.apache.hadoop.conf.Configuration conf,
Router routerService)
protected java.util.Map<java.lang.String,org.apache.hadoop.hdfs.server.federation.resolver.order.AvailableSpaceResolver.SubclusterAvailableSpace> getSubclusterInfo(MembershipStore membershipStore)
getSubclusterInfo in class RouterResolver<java.lang.String,org.apache.hadoop.hdfs.server.federation.resolver.order.AvailableSpaceResolver.SubclusterAvailableSpace>membershipStore - Membership store the resolver queried from.AvailableSpaceResolver.SubclusterAvailableSpace.protected java.lang.String chooseFirstNamespace(java.lang.String path,
PathLocation loc)
RouterResolverchooseFirstNamespace in class RouterResolver<java.lang.String,org.apache.hadoop.hdfs.server.federation.resolver.order.AvailableSpaceResolver.SubclusterAvailableSpace>path - Path to check.loc - Federated location with multiple destinations.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.