@InterfaceAudience.Private public class MasterRegistry extends Object
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
to a value greater than 1
will enable
it(the default value is MASTER_REGISTRY_HEDGED_REQS_FANOUT_DEFAULT
).
TODO: Handle changes to the configuration dynamically without having to restart the client.Modifier and Type | Field and Description |
---|---|
static int |
MASTER_REGISTRY_HEDGED_REQS_FANOUT_DEFAULT
Default value for the fan out of hedged requests.
|
static String |
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
Configuration key that controls the fan out of requests
|
protected MasterAddressRefresher |
masterAddressRefresher |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this instance and releases any system resources associated with it
|
CompletableFuture<ServerName> |
getActiveMaster()
Get the address of active HMaster.
|
CompletableFuture<String> |
getClusterId()
Should only be called once.
|
static String |
getMasterAddr(org.apache.hadoop.conf.Configuration conf)
Builds the default master address end point if it is not specified in the configuration.
|
CompletableFuture<RegionLocations> |
getMetaRegionLocations()
Get the location of meta region(s).
|
public static final String MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
public static final int MASTER_REGISTRY_HEDGED_REQS_FANOUT_DEFAULT
protected final MasterAddressRefresher masterAddressRefresher
public static String getMasterAddr(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
HBaseTestingUtility
.UnknownHostException
public CompletableFuture<RegionLocations> getMetaRegionLocations()
public CompletableFuture<String> getClusterId()
The upper layer should store this value somewhere as it will not be change any more.
public CompletableFuture<ServerName> getActiveMaster()
public void close()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.