Package org.apache.hadoop.hdfs.server.federation.resolver
@Private
@Evolving
package org.apache.hadoop.hdfs.server.federation.resolver
The resolver package contains indepedent data resolvers used in HDFS
federation. The data resolvers collect data from the cluster, including from
the state store. The resolvers expose APIs used by HDFS federation to collect
aggregated, cached data for use in Real-time request processing. The
resolvers are perf-sensitive and are used in the flow of the
RouterRpcServer request path.
The principal resolvers are:
ActiveNamenodeResolverReal-time interface for locating the most recently active NN for a nameservice.FileSubclusterResolverReal-time interface for determining the NN and local file path for a given file/folder based on the global namespace path.
-
ClassDescriptionLocates the most active NN for a given nameservice ID or blockpool ID.Interface for a discovered NN and its current server endpoints.Namenode state in the federation.Represents information about a single nameservice/namespace in a federated HDFS cluster.Interface to map a file path in the global name space to a specific subcluster and path in an HDFS name space.Implements a cached lookup of the most recently active namenode for a particular nameservice.Manage a mount table.Mount table to map between global paths and remote locations.Mount table resolver that supports multiple locations for each mount entry.Compares NNs in the same namespace and prioritizes by their status.Status of the namenode.A map of the properties and target destinations (name space + path) for a path in the global/federated name space.A location in a remote namespace consisting of a nameservice ID and a HDFS path (destination).Generic methods for managing Router.Thrown by FileSubclusterResolver when a path can't be resolved.