Package org.apache.hadoop.hbase.client
Class MasterRegistry
java.lang.Object
org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry
org.apache.hadoop.hbase.client.MasterRegistry
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ConnectionRegistry
Deprecated.
Master based registry implementation. Makes RPCs to the configured master addresses from config
"hbase.masters".
It supports hedged reads, set the fan out of the requests batch by
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
to a value greater than 1
will enable
it(the default value is AbstractRpcBasedConnectionRegistry.HEDGED_REQS_FANOUT_DEFAULT
).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry
AbstractRpcBasedConnectionRegistry.Callable<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
Deprecated.private static final String
Deprecated.static final String
Deprecated.Configuration key that controls the fan out of requestsstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.Fields inherited from class org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry
HEDGED_REQS_FANOUT_DEFAULT
-
Constructor Summary
ConstructorDescriptionMasterRegistry
(org.apache.hadoop.conf.Configuration conf, User user) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Set<ServerName>>
Deprecated.protected Set<ServerName>
getBootstrapNodes
(org.apache.hadoop.conf.Configuration conf) Deprecated.Deprecated.Return the connection string associated with this registry instance.(package private) static String
getConnectionString
(org.apache.hadoop.conf.Configuration conf) Deprecated.private static int
getDefaultMasterPort
(org.apache.hadoop.conf.Configuration conf) Deprecated.Supplies the default master port we should use given the provided configuration.static String
getMasterAddr
(org.apache.hadoop.conf.Configuration conf) Deprecated.Builds the default master address end point if it is not specified in the configuration.(package private) CompletableFuture<Set<ServerName>>
Deprecated.static Set<ServerName>
parseMasterAddrs
(org.apache.hadoop.conf.Configuration conf) Deprecated.Parses the list of master addresses from the provided configuration.private static Set<ServerName>
transformServerNames
(org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetMastersResponse resp) Deprecated.Methods inherited from class org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry
call, close, getActiveMaster, getClusterId, getMetaRegionLocations, getParsedServers
-
Field Details
-
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
Deprecated.Configuration key that controls the fan out of requests- See Also:
-
MASTER_REGISTRY_INITIAL_REFRESH_DELAY_SECS
Deprecated.- See Also:
-
MASTER_REGISTRY_PERIODIC_REFRESH_INTERVAL_SECS
Deprecated.- See Also:
-
MASTER_REGISTRY_MIN_SECS_BETWEEN_REFRESHES
Deprecated.- See Also:
-
MASTER_ADDRS_CONF_SEPARATOR
Deprecated.- See Also:
-
connectionString
Deprecated.
-
-
Constructor Details
-
MasterRegistry
MasterRegistry(org.apache.hadoop.conf.Configuration conf, User user) throws IOException Deprecated.- Throws:
IOException
-
-
Method Details
-
getDefaultMasterPort
Deprecated.Supplies the default master port we should use given the provided configuration.- Parameters:
conf
- Configuration to parse from.
-
parseMasterAddrs
public static Set<ServerName> parseMasterAddrs(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException Deprecated.Parses the list of master addresses from the provided configuration. Supported format is comma separated host[:port] values. If no port number if specified, default master port is assumed.- Parameters:
conf
- Configuration to parse from.- Throws:
UnknownHostException
-
getBootstrapNodes
protected Set<ServerName> getBootstrapNodes(org.apache.hadoop.conf.Configuration conf) throws IOException Deprecated.- Specified by:
getBootstrapNodes
in classAbstractRpcBasedConnectionRegistry
- Throws:
IOException
-
fetchEndpoints
Deprecated.- Specified by:
fetchEndpoints
in classAbstractRpcBasedConnectionRegistry
-
getConnectionString
Deprecated.Description copied from interface:ConnectionRegistry
Return the connection string associated with this registry instance. This value is informational, used for annotating traces. Values returned may not be valid for establishing a working cluster connection. -
getConnectionString
static String getConnectionString(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException Deprecated.- Throws:
UnknownHostException
-
getMasterAddr
public static String getMasterAddr(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException Deprecated.Builds the default master address end point if it is not specified in the configuration. Will be called inHBaseTestingUtility
.- Throws:
UnknownHostException
-
transformServerNames
private static Set<ServerName> transformServerNames(org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetMastersResponse resp) Deprecated. -
getMasters
Deprecated.
-
RpcConnectionRegistry
instead.