FileSubclusterResolver, StateStoreCachepublic class MultipleDestinationMountTableResolver extends MountTableResolver
Does the Mount table entry for this path have multiple destinations?
It has multiple options to order the locations: HASH (default), LOCAL, RANDOM, and HASH_ALL.
The consistent hashing result is dependent on the number and combination of nameservices that are registered for particular mount point. The order of nameservices/locations in the mount table is not prioritized. Each consistent hash calculation considers only the set of unique nameservices present for the mount table location.
| Constructor | Description |
|---|---|
MultipleDestinationMountTableResolver(org.apache.hadoop.conf.Configuration conf,
Router router) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addResolver(DestinationOrder order,
OrderedResolver resolver) |
|
PathLocation |
getDestinationForPath(java.lang.String path) |
Get the destinations for a global path.
|
addEntry, clear, getCacheSize, getDefaultNameService, getDefaultNamespace, getLocCacheAccess, getLocCacheMiss, getMountPoint, getMountPoints, getMounts, getMountTableStore, getRouter, getTrashRoot, isDefaultNSEnable, isTrashPath, loadCache, lookupLocation, refreshEntries, removeEntry, setDefaultNameService, setDefaultNSEnable, setDisabled, subtractTrashCurrentPath, toStringpublic MultipleDestinationMountTableResolver(org.apache.hadoop.conf.Configuration conf,
Router router)
public PathLocation getDestinationForPath(java.lang.String path) throws java.io.IOException
FileSubclusterResolvergetDestinationForPath in interface FileSubclusterResolvergetDestinationForPath in class MountTableResolverpath - Global path.java.io.IOException - Throws exception if the data is not available.@VisibleForTesting public void addResolver(DestinationOrder order, OrderedResolver resolver)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.