Uses of Class
org.apache.hadoop.hbase.ServerName
Package
Description
Provides HBase Client
Table of Contents
Tools to help define network clients and servers.
Multi Cluster Replication
HBase REST
-
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.ServerName
HBaseServerBase.serverName
The server name the Master sees us as.Modifier and TypeFieldDescriptionstatic final List<org.apache.hadoop.hbase.ServerName>
ServerName.EMPTY_SERVER_LIST
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
ClusterMetrics.getMasterName()
Returns detailed information about the current masterServerName
.org.apache.hadoop.hbase.ServerName
HBaseCluster.getServerHoldingMeta()
Deprecated.Get the ServerName of region server serving the first hbase:meta regionabstract org.apache.hadoop.hbase.ServerName
HBaseCluster.getServerHoldingRegion
(org.apache.hadoop.hbase.TableName tn, byte[] regionName) Deprecated.Get the ServerName of region server serving the specified regionorg.apache.hadoop.hbase.ServerName
MiniHBaseCluster.getServerHoldingRegion
(org.apache.hadoop.hbase.TableName tn, byte[] regionName) Deprecated.static org.apache.hadoop.hbase.ServerName
CatalogFamilyFormat.getServerName
(org.apache.hadoop.hbase.client.Result r, int replicaId) Returns aServerName
from catalog tableResult
.org.apache.hadoop.hbase.ServerName
HBaseServerBase.getServerName()
org.apache.hadoop.hbase.ServerName
HRegionLocation.getServerName()
org.apache.hadoop.hbase.ServerName
MockRegionServerServices.getServerName()
org.apache.hadoop.hbase.ServerName
Server.getServerName()
Returns The unique server name for this server.org.apache.hadoop.hbase.ServerName
ServerMetrics.getServerName()
org.apache.hadoop.hbase.ServerName
SplitLogTask.getServerName()
Deprecated.static org.apache.hadoop.hbase.ServerName
MetaTableAccessor.getTargetServerName
(org.apache.hadoop.hbase.client.Result r, int replicaId) Returns theServerName
from catalog tableResult
where the region is transitioning on.static org.apache.hadoop.hbase.ServerName
ServerName.parseServerName
(String str) Parse a ServerName from a stringstatic org.apache.hadoop.hbase.ServerName
ServerName.parseVersionedServerName
(byte[] versionedBytes) Use this method instantiating aServerName
from bytes gotten from a call togetVersionedBytes()
.static org.apache.hadoop.hbase.ServerName
ServerName.valueOf
(String serverName) Retrieve an instance of ServerName.static org.apache.hadoop.hbase.ServerName
ServerName.valueOf
(String hostname, int port, long startCode) Retrieve an instance of ServerName.static org.apache.hadoop.hbase.ServerName
ServerName.valueOf
(String hostAndPort, long startCode) Retrieve an instance of ServerName.static org.apache.hadoop.hbase.ServerName
ServerName.valueOf
(org.apache.hadoop.hbase.net.Address address, long startCode) Retrieve an instance ofServerName
.Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
ClusterMetrics.getBackupMasterNames()
Returns the names of backup mastersList<org.apache.hadoop.hbase.ServerName>
ClusterMetrics.getDeadServerNames()
Returns the names of region servers on the dead listList<org.apache.hadoop.hbase.ServerName>
ClusterMetrics.getDecommissionedServerNames()
Returns the names of region servers on the decommissioned listMap<org.apache.hadoop.hbase.ServerName,
org.apache.hadoop.hbase.ServerMetrics> ClusterMetrics.getLiveServerMetrics()
Returns the names of region servers on the live liststatic org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName> MetaTableAccessor.getRegion
(org.apache.hadoop.hbase.client.Connection connection, byte[] regionName) Deprecated.List<org.apache.hadoop.hbase.ServerName>
ClusterMetrics.getServersName()
static List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName>> MetaTableAccessor.getTableRegionsAndLocations
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName) Do not use this method to get meta table regions, use methods in MetaTableLocator instead.static List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName>> MetaTableAccessor.getTableRegionsAndLocations
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName, boolean excludeOfflinedSplitParents) Do not use this method to get meta table regions, use methods in MetaTableLocator instead.List<org.apache.hadoop.hbase.ServerName>
ClusterMetrics.getUnknownServerNames()
Returns the names of region servers on the unknown listModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.client.Put
MetaTableAccessor.addLocation
(org.apache.hadoop.hbase.client.Put p, org.apache.hadoop.hbase.ServerName sn, long openSeqNum, int replicaId) void
HBaseTestingUtility.assertRegionOnlyOnServer
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.ServerName server, long timeout) Deprecated.Check to make sure the region is open on the specified region server, but not on any other one.void
HBaseTestingUtility.assertRegionOnServer
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.ServerName server, long timeout) Deprecated.Due to async racing issue, a region may not be in the online region list of a region server yet, after the assignment znode is deleted and the new assignment is recorded in master.int
ServerName.compareTo
(org.apache.hadoop.hbase.ServerName other) org.apache.hadoop.hbase.regionserver.RegionServerServices
HBaseTestingUtility.createMockRegionServerService
(org.apache.hadoop.hbase.ServerName name) Deprecated.Create a stubbed out RegionServerService, mainly for getting FS.protected int
MiniHBaseCluster.getMasterIndex
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.org.apache.hadoop.hbase.regionserver.HRegionServer
MiniHBaseCluster.getRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.protected int
MiniHBaseCluster.getRegionServerIndex
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.boolean
SplitLogTask.isDone
(org.apache.hadoop.hbase.ServerName sn) Deprecated.boolean
SplitLogTask.isErr
(org.apache.hadoop.hbase.ServerName sn) Deprecated.abstract boolean
HBaseCluster.isKilledRS
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Keeping track of killed servers and being able to check if a particular server was killed makes it possible to do fault tolerance testing for dead servers in a deterministic way.boolean
MiniHBaseCluster.isKilledRS
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.boolean
SplitLogTask.isOwned
(org.apache.hadoop.hbase.ServerName sn) Deprecated.boolean
SplitLogTask.isResigned
(org.apache.hadoop.hbase.ServerName sn) Deprecated.static boolean
ServerName.isSameAddress
(org.apache.hadoop.hbase.ServerName left, org.apache.hadoop.hbase.ServerName right) Compare two addressesboolean
SplitLogTask.isUnassigned
(org.apache.hadoop.hbase.ServerName sn) Deprecated.abstract void
HBaseCluster.killDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Kills the datanode process if this is a distributed cluster, otherwise, this causes master to exit doing basic clean up only.void
MiniHBaseCluster.killDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.killMaster
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Kills the master process if this is a distributed cluster, otherwise, this causes master to exit doing basic clean up only.void
MiniHBaseCluster.killMaster
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.killNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Kills the namenode process if this is a distributed cluster, otherwise, this causes master to exit doing basic clean up only.void
MiniHBaseCluster.killNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.killRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Kills the region server process if this is a distributed cluster, otherwise this causes the region server to exit doing basic clean up only.void
MiniHBaseCluster.killRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.killZkNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Kills the zookeeper node process if this is a distributed cluster, otherwise, this causes master to exit doing basic clean up only.void
MiniHBaseCluster.killZkNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.void
HBaseTestingUtility.moveRegionAndWait
(org.apache.hadoop.hbase.client.RegionInfo destRegion, org.apache.hadoop.hbase.ServerName destServer) Deprecated.Move region to destination server and wait till region is completely moved and onlinestatic org.apache.hadoop.hbase.ServerMetricsBuilder
ServerMetricsBuilder.newBuilder
(org.apache.hadoop.hbase.ServerName sn) static org.apache.hadoop.hbase.ServerMetrics
ServerMetricsBuilder.of
(org.apache.hadoop.hbase.ServerName sn) static org.apache.hadoop.hbase.ServerMetrics
ServerMetricsBuilder.of
(org.apache.hadoop.hbase.ServerName sn, int versionNumber, String version) org.apache.hadoop.hbase.RegionLocations
RegionLocations.removeByServer
(org.apache.hadoop.hbase.ServerName serverName) Returns a new RegionLocations with the locations removed (set to null) which have the destination server as given.boolean
MockRegionServerServices.removeRegion
(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.ServerName destination) abstract void
HBaseCluster.resumeRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Resume the region servervoid
MiniHBaseCluster.resumeRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setMasterName
(org.apache.hadoop.hbase.ServerName value) abstract void
HBaseCluster.startDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Starts a new datanode on the given hostname or if this is a mini/local cluster, silently logs warning message.void
MiniHBaseCluster.startDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.startNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Starts a new namenode on the given hostname or if this is a mini/local cluster, silently logs warning message.void
MiniHBaseCluster.startNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.stopDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Stops the datanode if this is a distributed cluster, otherwise silently logs warning message.void
MiniHBaseCluster.stopDataNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.stopMaster
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Stops the given master, by attempting a gradual stop.void
MiniHBaseCluster.stopMaster
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.stopNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Stops the namenode if this is a distributed cluster, otherwise silently logs warning message.void
MiniHBaseCluster.stopNameNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.stopRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Stops the given region server, by attempting a gradual stop.void
MiniHBaseCluster.stopRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.stopZkNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Stops the region zookeeper if this is a distributed cluster, otherwise silently logs warning message.void
MiniHBaseCluster.stopZkNode
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.abstract void
HBaseCluster.suspendRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.Suspend the region servervoid
MiniHBaseCluster.suspendRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.static org.apache.hadoop.hbase.ServerMetrics
ServerMetricsBuilder.toServerMetrics
(org.apache.hadoop.hbase.ServerName serverName, int versionNumber, String version, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) static org.apache.hadoop.hbase.ServerMetrics
ServerMetricsBuilder.toServerMetrics
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ServerLoad serverLoadPB) static void
MetaTableAccessor.updateRegionLocation
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn, long openSeqNum, long masterSystemTime) Updates the location of the specified region in hbase:meta to be the specified server hostname and startcode.abstract void
HBaseCluster.waitForDataNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified datanode to join the clustervoid
MiniHBaseCluster.waitForDataNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForDataNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified datanode to stop the thread / process.void
MiniHBaseCluster.waitForDataNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForMasterToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified master to stop the thread / process.void
MiniHBaseCluster.waitForMasterToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForNameNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified namenode to join the clustervoid
MiniHBaseCluster.waitForNameNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForNameNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified namenode to stopvoid
MiniHBaseCluster.waitForNameNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForRegionServerToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified region server to stop the thread / process.void
MiniHBaseCluster.waitForRegionServerToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForZkNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified zookeeper node to join the clustervoid
MiniHBaseCluster.waitForZkNodeToStart
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.abstract void
HBaseCluster.waitForZkNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Wait for the specified zookeeper node to stop the thread / process.void
MiniHBaseCluster.waitForZkNodeToStop
(org.apache.hadoop.hbase.ServerName serverName, long timeout) Deprecated.Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setBackerMasterNames
(List<org.apache.hadoop.hbase.ServerName> value) org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setDeadServerNames
(List<org.apache.hadoop.hbase.ServerName> value) org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setDecommissionedServerNames
(List<org.apache.hadoop.hbase.ServerName> value) org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setLiveServerMetrics
(Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.ServerMetrics> value) org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setServerNames
(List<org.apache.hadoop.hbase.ServerName> serversName) org.apache.hadoop.hbase.ClusterMetricsBuilder
ClusterMetricsBuilder.setUnknownServerNames
(List<org.apache.hadoop.hbase.ServerName> value) ModifierConstructorDescriptionDone
(org.apache.hadoop.hbase.ServerName originServer) Err
(org.apache.hadoop.hbase.ServerName originServer) HRegionLocation
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName) HRegionLocation
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName, long seqNum) MockRegionServerServices
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, org.apache.hadoop.hbase.ServerName serverName) Owned
(org.apache.hadoop.hbase.ServerName originServer) Resigned
(org.apache.hadoop.hbase.ServerName originServer) Unassigned
(org.apache.hadoop.hbase.ServerName originServer) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.client
Modifier and TypeMethodDescriptiondefault org.apache.hadoop.hbase.ServerName
Admin.getMaster()
Get the current active master.Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
Admin.clearDeadServers
(List<org.apache.hadoop.hbase.ServerName> servers) Clear dead region servers from master.CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.clearDeadServers
(List<org.apache.hadoop.hbase.ServerName> servers) Clear dead region servers from master.Turn the compaction on or off.CompletableFuture<Map<org.apache.hadoop.hbase.ServerName,
Boolean>> Turn the compaction on or off.static <S,
R> CompletableFuture<Map<org.apache.hadoop.hbase.ServerName, Object>> AsyncAdminClientUtils.coprocessorServiceOnAllRegionServers
(org.apache.hadoop.hbase.client.AsyncAdmin asyncAdmin, Function<org.apache.hbase.thirdparty.com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable) Execute the given coprocessor call on all region servers.protected CompletableFuture<Set<org.apache.hadoop.hbase.ServerName>>
MasterRegistry.fetchEndpoints()
Deprecated.protected CompletableFuture<Set<org.apache.hadoop.hbase.ServerName>>
RpcConnectionRegistry.fetchEndpoints()
CompletableFuture<org.apache.hadoop.hbase.ServerName>
ConnectionRegistry.getActiveMaster()
Get the address of active HMaster.Optional<org.apache.hadoop.hbase.ServerName>
ConnectionRegistryEndpoint.getActiveMaster()
Get active master address.CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncClusterConnection.getAllBootstrapNodes
(org.apache.hadoop.hbase.ServerName regionServer) Get the bootstrap node list of another region server.default Collection<org.apache.hadoop.hbase.ServerName>
Admin.getBackupMasters()
Get a list of current backup masters.default CompletableFuture<Collection<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.getBackupMasters()
Returns current backup master list wrapped byCompletableFuture
List<org.apache.hadoop.hbase.ServerName>
ConnectionRegistryEndpoint.getBackupMasters()
Get backup masters address.Iterator<org.apache.hadoop.hbase.ServerName>
ConnectionRegistryEndpoint.getBootstrapNodes()
Get a iterator of the available bootstrap nodes.protected Set<org.apache.hadoop.hbase.ServerName>
MasterRegistry.getBootstrapNodes
(org.apache.hadoop.conf.Configuration conf) Deprecated.protected Set<org.apache.hadoop.hbase.ServerName>
RpcConnectionRegistry.getBootstrapNodes
(org.apache.hadoop.conf.Configuration conf) CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncClusterConnection.getLiveRegionServers
(org.apache.hadoop.hbase.zookeeper.MasterAddressTracker masterAddrTracker, int count) Get live region servers from masters.default CompletableFuture<org.apache.hadoop.hbase.ServerName>
AsyncAdmin.getMaster()
Returns current master server name wrapped byCompletableFuture
default Collection<org.apache.hadoop.hbase.ServerName>
Admin.getRegionServers()
Get the live server list.default Collection<org.apache.hadoop.hbase.ServerName>
Admin.getRegionServers
(boolean excludeDecommissionedRS) Retrieve all current live region servers including decommissioned if excludeDecommissionedRS is false, else non-decommissioned ones onlydefault CompletableFuture<Collection<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.getRegionServers()
Returns current live region servers list wrapped byCompletableFuture
default CompletableFuture<Collection<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.getRegionServers
(boolean excludeDecommissionedRS) ConcurrentHashMap<org.apache.hadoop.hbase.ServerName,
ConcurrentMap<byte[], org.apache.hadoop.hbase.client.MetricsConnection.RegionStats>> MetricsConnection.getServerStats()
serverStats metricdefault List<org.apache.hadoop.hbase.ServerName>
Admin.listDeadServers()
List dead region servers.default CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.listDeadServers()
List all the dead region servers.List<org.apache.hadoop.hbase.ServerName>
Admin.listDecommissionedRegionServers()
List region servers marked as decommissioned, which can not be assigned regions.CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.listDecommissionedRegionServers()
List region servers marked as decommissioned, which can not be assigned regions.default List<org.apache.hadoop.hbase.ServerName>
Admin.listUnknownServers()
List unknown region servers.default CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.listUnknownServers()
List all the unknown region servers.static Set<org.apache.hadoop.hbase.ServerName>
MasterRegistry.parseMasterAddrs
(org.apache.hadoop.conf.Configuration conf) Deprecated.Parses the list of master addresses from the provided configuration.Modifier and TypeMethodDescriptionvoid
Clear compacting queues on a regionserver.Clear compacting queues on a region server.void
Admin.compactRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Compact all regions on the region server.AsyncAdmin.compactRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Compact all regions on the region server.org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel
Admin.coprocessorService
(org.apache.hadoop.hbase.ServerName serverName) Deprecated.since 3.0.0, will removed in 4.0.0.<S,
R> CompletableFuture<R> AsyncAdmin.coprocessorService
(Function<org.apache.hbase.thirdparty.com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable, org.apache.hadoop.hbase.ServerName serverName) Execute the given coprocessor call on the given region server.void
RequestController.decTaskCounters
(Collection<byte[]> regions, org.apache.hadoop.hbase.ServerName sn) Decrement the counter if a task is accomplished.void
Admin.flushRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Flush all regions on the region server.AsyncAdmin.flushRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Flush all region on the region server.CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncClusterConnection.getAllBootstrapNodes
(org.apache.hadoop.hbase.ServerName regionServer) Get the bootstrap node list of another region server.Admin.getCachedFilesList
(org.apache.hadoop.hbase.ServerName serverName) Get the list of cached filesAsyncAdmin.getCachedFilesList
(org.apache.hadoop.hbase.ServerName serverName) Get the list of cached filesorg.apache.hadoop.hbase.client.Hbck
AsyncConnection.getHbck
(org.apache.hadoop.hbase.ServerName masterServer) Retrieve an Hbck implementation to fix an HBase cluster.org.apache.hadoop.hbase.client.Hbck
AsyncConnectionImpl.getHbck
(org.apache.hadoop.hbase.ServerName masterServer) default org.apache.hadoop.hbase.client.Hbck
Connection.getHbck
(org.apache.hadoop.hbase.ServerName masterServer) Retrieve an Hbck implementation to fix an HBase cluster.org.apache.hadoop.hbase.client.Hbck
SharedAsyncConnection.getHbck
(org.apache.hadoop.hbase.ServerName masterServer) org.apache.hadoop.hbase.client.Hbck
SharedConnection.getHbck
(org.apache.hadoop.hbase.ServerName masterServer) List<org.apache.hadoop.hbase.RegionMetrics>
Admin.getRegionMetrics
(org.apache.hadoop.hbase.ServerName serverName) GetRegionMetrics
of all regions hosted on a regionserver.List<org.apache.hadoop.hbase.RegionMetrics>
Admin.getRegionMetrics
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.TableName tableName) GetRegionMetrics
of all regions hosted on a regionserver for a table.CompletableFuture<List<org.apache.hadoop.hbase.RegionMetrics>>
AsyncAdmin.getRegionMetrics
(org.apache.hadoop.hbase.ServerName serverName) Get a list ofRegionMetrics
of all regions hosted on a region server.CompletableFuture<List<org.apache.hadoop.hbase.RegionMetrics>>
AsyncAdmin.getRegionMetrics
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.TableName tableName) Get a list ofRegionMetrics
of all regions hosted on a region server for a table.List<org.apache.hadoop.hbase.client.RegionInfo>
Admin.getRegions
(org.apache.hadoop.hbase.ServerName serverName) Get all the online regions on a region server.CompletableFuture<List<org.apache.hadoop.hbase.client.RegionInfo>>
AsyncAdmin.getRegions
(org.apache.hadoop.hbase.ServerName serverName) Get all the online regions on a region server.org.apache.hadoop.hbase.client.AsyncRegionServerAdmin
AsyncClusterConnection.getRegionServerAdmin
(org.apache.hadoop.hbase.ServerName serverName) Get the admin service for the given region server.Map<org.apache.hadoop.hbase.TableName,
? extends org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotView> Admin.getRegionServerSpaceQuotaSnapshots
(org.apache.hadoop.hbase.ServerName serverName) Fetches the observedSpaceQuotaSnapshotView
s observed by a RegionServer.CompletableFuture<? extends Map<org.apache.hadoop.hbase.TableName,
? extends org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotView>> AsyncAdmin.getRegionServerSpaceQuotaSnapshots
(org.apache.hadoop.hbase.ServerName serverName) Fetches the observedSpaceQuotaSnapshotView
s observed by a RegionServer.org.apache.hadoop.hbase.client.backoff.ServerStatistics
ServerStatisticTracker.getStats
(org.apache.hadoop.hbase.ServerName server) void
RequestController.incTaskCounters
(Collection<byte[]> regions, org.apache.hadoop.hbase.ServerName sn) Increment the counter if we build a valid task.void
Admin.majorCompactRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Major compact all regions on the region server.AsyncAdmin.majorCompactRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Compact all regions on the region server.void
Admin.move
(byte[] encodedRegionName, org.apache.hadoop.hbase.ServerName destServerName) Move the regionencodedRegionName
todestServerName
.AsyncAdmin.move
(byte[] regionName, org.apache.hadoop.hbase.ServerName destServerName) Move the regionr
todest
.void
Admin.recommissionRegionServer
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) Remove decommission marker from a region server to allow regions assignments.AsyncAdmin.recommissionRegionServer
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) Remove decommission marker from a region server to allow regions assignments.void
Admin.rollWALWriter
(org.apache.hadoop.hbase.ServerName serverName) Roll the log writer.AsyncAdmin.rollWALWriter
(org.apache.hadoop.hbase.ServerName serverName) Roll the log writer.AsyncAdmin.stopRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Stop the designated regionserver.void
Admin.updateConfiguration
(org.apache.hadoop.hbase.ServerName server) Update the configuration and trigger an online config change on the regionserver.AsyncAdmin.updateConfiguration
(org.apache.hadoop.hbase.ServerName serverName) Update the configuration and trigger an online config change on the regionserver.void
MetricsConnection.updateRegionStats
(org.apache.hadoop.hbase.ServerName serverName, byte[] regionName, org.apache.hadoop.hbase.client.RegionLoadStats stats) void
ServerStatisticTracker.updateRegionStats
(org.apache.hadoop.hbase.ServerName server, byte[] region, org.apache.hadoop.hbase.client.RegionLoadStats currentStats) void
StatisticTrackable.updateRegionStats
(org.apache.hadoop.hbase.ServerName server, byte[] region, org.apache.hadoop.hbase.client.RegionLoadStats stats) Update stats per region.void
MetricsConnection.updateServerStats
(org.apache.hadoop.hbase.ServerName serverName, byte[] regionName, Object r) static void
ResultStatsUtil.updateStats
(org.apache.hadoop.hbase.client.StatisticTrackable tracker, org.apache.hadoop.hbase.ServerName server, byte[] regionName, org.apache.hadoop.hbase.client.RegionLoadStats stats) Update the statistics for the specified region.Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
Admin.clearDeadServers
(List<org.apache.hadoop.hbase.ServerName> servers) Clear dead region servers from master.CompletableFuture<List<org.apache.hadoop.hbase.ServerName>>
AsyncAdmin.clearDeadServers
(List<org.apache.hadoop.hbase.ServerName> servers) Clear dead region servers from master.Admin.clearSlowLogResponses
(Set<org.apache.hadoop.hbase.ServerName> serverNames) Clears online slow/large RPC logs from the provided list of RegionServersAsyncAdmin.clearSlowLogResponses
(Set<org.apache.hadoop.hbase.ServerName> serverNames) Clears online slow RPC logs from the provided list of RegionServersvoid
Admin.decommissionRegionServers
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) Mark region server(s) as decommissioned to prevent additional regions from getting assigned to them.AsyncAdmin.decommissionRegionServers
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) Mark region server(s) as decommissioned to prevent additional regions from getting assigned to them.Admin.getLogEntries
(Set<org.apache.hadoop.hbase.ServerName> serverNames, String logType, org.apache.hadoop.hbase.client.ServerType serverType, int limit, Map<String, Object> filterParams) Retrieve recent online records from HMaster / RegionServers.AsyncAdmin.getLogEntries
(Set<org.apache.hadoop.hbase.ServerName> serverNames, String logType, org.apache.hadoop.hbase.client.ServerType serverType, int limit, Map<String, Object> filterParams) Retrieve recent online records from HMaster / RegionServers.default List<OnlineLogRecord>
Admin.getSlowLogResponses
(Set<org.apache.hadoop.hbase.ServerName> serverNames, LogQueryFilter logQueryFilter) Deprecated.since 2.4.0 and will be removed in 4.0.0.default CompletableFuture<List<OnlineLogRecord>>
AsyncAdmin.getSlowLogResponses
(Set<org.apache.hadoop.hbase.ServerName> serverNames, LogQueryFilter logQueryFilter) Deprecated.since 2.4.0 and will be removed in 4.0.0.HBaseHbck.scheduleServerCrashProcedures
(List<org.apache.hadoop.hbase.ServerName> serverNames) Hbck.scheduleServerCrashProcedures
(List<org.apache.hadoop.hbase.ServerName> serverNames) ModifierConstructorDescriptionAsyncAdminRequestRetryingCaller
(org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer, org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, int priority, long pauseNs, long pauseNsForServerOverloaded, int maxAttempts, long operationTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.client.AsyncAdminRequestRetryingCaller.Callable<T> callable) AsyncServerRequestRpcRetryingCaller
(org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer, org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, long pauseNs, long pauseNsForServerOverloaded, int maxAttempts, long operationTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.client.AsyncServerRequestRpcRetryingCaller.Callable<T> callable) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.client.backoff
Modifier and TypeMethodDescriptionlong
ClientBackoffPolicy.getBackoffTime
(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats) Returns the number of ms to wait on the client based on thelong
ClientBackoffPolicyFactory.NoBackoffPolicy.getBackoffTime
(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats) long
ExponentialClientBackoffPolicy.getBackoffTime
(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.coordination
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
SplitLogManagerCoordination.SplitLogManagerDetails.getServerName()
Returns server nameModifier and TypeMethodDescriptionprotected static int
ZkSplitLogWorkerCoordination.attemptToOwnTask
(boolean isFirstTime, org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, org.apache.hadoop.hbase.ServerName server, String task, int taskZKVersion) Try to own the task by transitioning the zk node data from UNASSIGNED to OWNED.org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.TaskFinisher.Status
ZKSplitLogManagerCoordination.TaskFinisher.finish
(org.apache.hadoop.hbase.ServerName workerName, String taskname) finish the partially done task.ModifierConstructorDescriptionZkSplitLogWorkerCoordination
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.coprocessor
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
MasterCoprocessorEnvironment.getServerName()
Returns Hosting Server's ServerNameorg.apache.hadoop.hbase.ServerName
RegionCoprocessorEnvironment.getServerName()
Returns Hosting Server's ServerNameorg.apache.hadoop.hbase.ServerName
RegionServerCoprocessorEnvironment.getServerName()
Returns Hosting Server's ServerNameModifier and TypeMethodDescriptiondefault void
MasterObserver.postMove
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) Called after the region move has been requested.default void
MasterObserver.postRecommissionRegionServer
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) Called after recommission region server.default void
MasterObserver.preMove
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) Called prior to moving a given region from one region server to another.default void
MasterObserver.preRecommissionRegionServer
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) Called before recommission region server.Modifier and TypeMethodDescriptiondefault void
MasterObserver.postClearDeadServers
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, List<org.apache.hadoop.hbase.ServerName> servers, List<org.apache.hadoop.hbase.ServerName> notClearedServers) Called after clear dead region servers.default void
MasterObserver.postDecommissionRegionServers
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) Called after decommission region servers.default void
MasterObserver.preDecommissionRegionServers
(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment> ctx, List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) Called before decommission region servers. -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.exceptions
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
RegionMovedException.getServerName()
ModifierConstructorDescriptionPreemptiveFastFailException
(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, org.apache.hadoop.hbase.ServerName serverName) Deprecated.PreemptiveFastFailException
(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, org.apache.hadoop.hbase.ServerName serverName, boolean guaranteedClientSideOnly) Deprecated.RegionMovedException
(org.apache.hadoop.hbase.ServerName serverName, long locationSeqNum) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.favored
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.generateMissingFavoredNode
(List<org.apache.hadoop.hbase.ServerName> favoredNodes) org.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.generateMissingFavoredNode
(List<org.apache.hadoop.hbase.ServerName> favoredNodes, List<org.apache.hadoop.hbase.ServerName> excludeNodes) static org.apache.hadoop.hbase.ServerName[]
FavoredNodeAssignmentHelper.getFavoredNodesList
(byte[] favoredNodes) Convert PB bytes to ServerName.protected org.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.getOneRandomServer
(String rack, Set<org.apache.hadoop.hbase.ServerName> skipServerSet) Gets a random server from the specified rack and skips anything specified.org.apache.hadoop.hbase.ServerName[]
FavoredNodeAssignmentHelper.getSecondaryAndTertiary
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName primaryRS) org.apache.hadoop.hbase.ServerName
FavoredNodeLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
FavoredNodeAssignmentHelper.generateFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo hri) FavoredNodeAssignmentHelper.generateFavoredNodesRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) FavoredNodesPlan.getAssignmentMap()
Return the mapping between each region to its favored region server list.List<org.apache.hadoop.hbase.ServerName>
FavoredNodeLoadBalancer.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodesManager.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodesPlan.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo region) Returns the list of favored region server for this region based on the planList<org.apache.hadoop.hbase.ServerName>
FavoredNodesPromoter.getFavoredNodes
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) List<org.apache.hadoop.hbase.ServerName>
FavoredNodesManager.getFavoredNodesWithDNPort
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) This should only be used when sending FN information to the region servers.FavoredNodesManager.getReplicaLoad
(List<org.apache.hadoop.hbase.ServerName> servers) Get the replica count for the servers provided.FavoredNodeLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.favored.FavoredNodesPlan.Position
FavoredNodesPlan.getFavoredServerPosition
(List<org.apache.hadoop.hbase.ServerName> favoredNodes, org.apache.hadoop.hbase.ServerName server) Return the position of the server in the favoredNodes list.Set<org.apache.hadoop.hbase.client.RegionInfo>
FavoredNodesManager.getRegionsOfFavoredNode
(org.apache.hadoop.hbase.ServerName serverName) org.apache.hadoop.hbase.ServerName[]
FavoredNodeAssignmentHelper.getSecondaryAndTertiary
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName primaryRS) Modifier and TypeMethodDescriptionprotected List<org.apache.hadoop.hbase.master.RegionPlan>
FavoredNodeLoadBalancer.balanceTable
(org.apache.hadoop.hbase.TableName tableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> loadOfOneTable) void
FavoredNodeLoadBalancer.generateFavoredNodesForDaughter
(List<org.apache.hadoop.hbase.ServerName> servers, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.hbase.client.RegionInfo regionA, org.apache.hadoop.hbase.client.RegionInfo regionB) void
FavoredNodesPromoter.generateFavoredNodesForDaughter
(List<org.apache.hadoop.hbase.ServerName> servers, org.apache.hadoop.hbase.client.RegionInfo parent, org.apache.hadoop.hbase.client.RegionInfo hriA, org.apache.hadoop.hbase.client.RegionInfo hriB) FavoredNodeAssignmentHelper.generateFavoredNodesRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) org.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.generateMissingFavoredNode
(List<org.apache.hadoop.hbase.ServerName> favoredNodes) org.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.generateMissingFavoredNode
(List<org.apache.hadoop.hbase.ServerName> favoredNodes, List<org.apache.hadoop.hbase.ServerName> excludeNodes) static byte[]
FavoredNodeAssignmentHelper.getFavoredNodes
(List<org.apache.hadoop.hbase.ServerName> serverAddrList) Returns PB'ed bytes ofHBaseProtos.FavoredNodes
generated by the server list.static String
FavoredNodeAssignmentHelper.getFavoredNodesAsString
(List<org.apache.hadoop.hbase.ServerName> nodes) static org.apache.hadoop.hbase.favored.FavoredNodesPlan.Position
FavoredNodesPlan.getFavoredServerPosition
(List<org.apache.hadoop.hbase.ServerName> favoredNodes, org.apache.hadoop.hbase.ServerName server) Return the position of the server in the favoredNodes list.protected org.apache.hadoop.hbase.ServerName
FavoredNodeAssignmentHelper.getOneRandomServer
(String rack, Set<org.apache.hadoop.hbase.ServerName> skipServerSet) Gets a random server from the specified rack and skips anything specified.FavoredNodesManager.getReplicaLoad
(List<org.apache.hadoop.hbase.ServerName> servers) Get the replica count for the servers provided.void
FavoredNodeAssignmentHelper.placePrimaryRSAsRoundRobin
(Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>> assignmentMap, Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap, List<org.apache.hadoop.hbase.client.RegionInfo> regions) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryRS
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName[]> FavoredNodeAssignmentHelper.placeSecondaryAndTertiaryWithRestrictions
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> primaryRSMap) For regions that share the primary, avoid placing the secondary and tertiary on a same RS.org.apache.hadoop.hbase.ServerName
FavoredNodeLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) void
FavoredNodesManager.updateFavoredNodes
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionFNMap) void
FavoredNodesPlan.updateFavoredNodesMap
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) Update an assignment to the planstatic void
FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionToFavoredNodes, org.apache.hadoop.conf.Configuration conf) Update meta table with favored nodes infostatic void
FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo
(Map<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>> regionToFavoredNodes, org.apache.hadoop.hbase.client.Connection connection) Update meta table with favored nodes info -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.ipc
Modifier and TypeMethodDescriptionvoid
AbstractRpcClient.cancelConnections
(org.apache.hadoop.hbase.ServerName sn) Interrupt the connections to the given ip:port server.void
RpcClient.cancelConnections
(org.apache.hadoop.hbase.ServerName sn) Interrupt the connections to the given server.org.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannel
AbstractRpcClient.createBlockingRpcChannel
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User ticket, int rpcTimeout) org.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannel
RpcClient.createBlockingRpcChannel
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User user, int rpcTimeout) Creates a "channel" that can be used by a blocking protobuf service.org.apache.hbase.thirdparty.com.google.protobuf.RpcChannel
AbstractRpcClient.createRpcChannel
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User user, int rpcTimeout) org.apache.hbase.thirdparty.com.google.protobuf.RpcChannel
RpcClient.createRpcChannel
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User user, int rpcTimeout) Creates a "channel" that can be used by a protobuf service. -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.master
Modifier and TypeFieldDescriptionstatic final org.apache.hadoop.hbase.ServerName
LoadBalancer.BOGUS_SERVER_NAME
org.apache.hadoop.hbase.ServerName
SplitLogManager.Task.cur_worker_name
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
SplitWALManager.acquireSplitWALWorker
(org.apache.hadoop.hbase.procedure2.Procedure<?> procedure) Acquire a split WAL workerorg.apache.hadoop.hbase.ServerName
ServerManager.findServerWithSameHostnamePortWithLock
(org.apache.hadoop.hbase.ServerName serverName) Assumes onlineServers is locked.org.apache.hadoop.hbase.ServerName
RegionPlan.getDestination()
Get the destination server for the plan for this region.org.apache.hadoop.hbase.ServerName
HMaster.getServerName()
org.apache.hadoop.hbase.ServerName
RegionState.getServerName()
org.apache.hadoop.hbase.ServerName
RegionPlan.getSource()
Get the source server for the plan for this region.org.apache.hadoop.hbase.ServerName
LoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) Get a random region server from the listModifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.ServerName>
WorkerAssigner.acquire()
Set<org.apache.hadoop.hbase.ServerName>
DeadServer.copyServerNames()
List<org.apache.hadoop.hbase.ServerName>
ServerManager.createDestinationServersList()
CallsServerManager.createDestinationServersList(java.util.List<org.apache.hadoop.hbase.ServerName>)
without server to exclude.List<org.apache.hadoop.hbase.ServerName>
ServerManager.createDestinationServersList
(List<org.apache.hadoop.hbase.ServerName> serversToExclude) Creates a list of possible destinations for a region.protected List<org.apache.hadoop.hbase.ServerName>
ClusterStatusPublisher.generateDeadServersListToSend()
Create the dead server to send.Optional<org.apache.hadoop.hbase.ServerName>
HMaster.getActiveMaster()
Optional<org.apache.hadoop.hbase.ServerName>
ActiveMasterManager.getActiveMasterServerName()
Set<org.apache.hadoop.hbase.ServerName>
MasterRegionServerList.getAll()
Set<org.apache.hadoop.hbase.ServerName>
RegionServerList.getAll()
Get all live region servers.List<org.apache.hadoop.hbase.ServerName>
ActiveMasterManager.getBackupMasters()
Returns list of registered backup masters.List<org.apache.hadoop.hbase.ServerName>
HMaster.getBackupMasters()
Iterator<org.apache.hadoop.hbase.ServerName>
HMaster.getBootstrapNodes()
ClusterStatusPublisher.getDeadServers
(long since) Get the servers which died since a given timestamp.List<org.apache.hadoop.hbase.ServerName>
ServerManager.getDrainingServersList()
Returns A copy of the internal list of draining servers.Set<org.apache.hadoop.hbase.ServerName>
MasterWalManager.getFailedServersFromLogFolders()
Deprecated.With proc-v2, we can record the crash server with procedure store, so do not need to scan the wal directory to find out the splitting wal directory any more.static List<org.apache.hadoop.hbase.ServerName>
RegionPlacementMaintainer.getFavoredNodeList
(String favoredNodesStr) Collection<org.apache.hadoop.hbase.ServerName>
HMaster.getLiveRegionServers()
Set<org.apache.hadoop.hbase.ServerName>
MasterWalManager.getLiveServersFromWALDir()
Get Servernames that COULD BE 'alive'; excludes those that have a '-splitting' suffix as these are already being split -- they cannot be 'alive'.Map<org.apache.hadoop.hbase.ServerName,
org.apache.hadoop.hbase.ServerMetrics> ServerManager.getOnlineServers()
Returns Read-only map of servers to serverinfoList<org.apache.hadoop.hbase.ServerName>
ServerManager.getOnlineServersList()
Returns A copy of the internal list of online servers.List<org.apache.hadoop.hbase.ServerName>
ServerManager.getOnlineServersListWithPredicator
(List<org.apache.hadoop.hbase.ServerName> keys, Predicate<org.apache.hadoop.hbase.ServerMetrics> idleServerPredicator) SnapshotOfRegionAssignmentFromMeta.getPrimaryToRegionInfoMap()
Set<org.apache.hadoop.hbase.ServerName>
RegionServerTracker.getRegionServers()
SnapshotOfRegionAssignmentFromMeta.getRegionServerToRegionMap()
Get regionserver to region mapMap<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName> SnapshotOfRegionAssignmentFromMeta.getRegionToRegionServerMap()
Get region to region server mapHashMap<String,
List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.replication.ReplicationLoadSource>>> HMaster.getReplicationLoad
(org.apache.hadoop.hbase.ServerName[] serverNames) SnapshotOfRegionAssignmentFromMeta.getSecondaryToRegionInfoMap()
Set<org.apache.hadoop.hbase.ServerName>
MasterWalManager.getServerNamesFromWALDirPath
(org.apache.hadoop.fs.PathFilter filter) Returns listing of ServerNames found by parsing WAL directory paths in FS.Set<org.apache.hadoop.hbase.ServerName>
MasterWalManager.getSplittingServersFromWALDir()
Get Servernames which are currently splitting; paths have a '-splitting' suffix.SnapshotOfRegionAssignmentFromMeta.getTertiaryToRegionInfoMap()
List<org.apache.hadoop.hbase.ServerName>
HMaster.listDecommissionedRegionServers()
List region servers marked as decommissioned (previously called 'draining') to not get regions assigned to them.LoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) Assign regions to the previously hosting region serverLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Perform a Round Robin assignment of regions.Modifier and TypeMethodDescriptionboolean
ServerManager.addServerToDrainList
(org.apache.hadoop.hbase.ServerName sn) Add the server to the drain list.void
SplitWALManager.addUsedSplitWALWorker
(org.apache.hadoop.hbase.ServerName worker) When master restart, there will be a new splitWorkerAssigner.void
WorkerAssigner.addUsedWorker
(org.apache.hadoop.hbase.ServerName worker) void
MasterWalManager.archiveMetaLog
(org.apache.hadoop.hbase.ServerName serverName) The hbase:meta region may OPEN and CLOSE without issue on a server and then move elsewhere.static void
ServerManager.closeRegionSilentlyAndWait
(org.apache.hadoop.hbase.client.AsyncClusterConnection connection, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region, long timeout) Contacts a region server and waits up to timeout ms to close the region.protected org.apache.hadoop.hbase.master.ActiveMasterManager
HMaster.createActiveMasterManager
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.Server server) Protected to have custom implementations in tests override the default ActiveMaster implementation.void
SplitWALManager.deleteWALDir
(org.apache.hadoop.hbase.ServerName serverName) void
MasterRegionServerList.expired
(org.apache.hadoop.hbase.ServerName sn) void
RegionServerList.expired
(org.apache.hadoop.hbase.ServerName sn) Called when a region server is dead.long
ServerManager.expireServer
(org.apache.hadoop.hbase.ServerName serverName) Expire the passed server.org.apache.hadoop.hbase.ServerName
ServerManager.findServerWithSameHostnamePortWithLock
(org.apache.hadoop.hbase.ServerName serverName) Assumes onlineServers is locked.WorkerAssigner.getAvailableWorker
(org.apache.hadoop.hbase.ServerName serverName) int
ActiveMasterManager.getBackupMasterInfoPort
(org.apache.hadoop.hbase.ServerName sn) int
HMaster.getBackupMasterInfoPort
(org.apache.hadoop.hbase.ServerName sn) int
ServerManager.getInfoPort
(org.apache.hadoop.hbase.ServerName serverName) org.apache.hadoop.hbase.ServerMetrics
ServerManager.getLoad
(org.apache.hadoop.hbase.ServerName serverName) Returns ServerMetrics if serverName is known else nullRackManager.getRack
(org.apache.hadoop.hbase.ServerName server) Get the name of the rack containing a server, according to the DNS to switch mapping.int
HMaster.getRegionServerInfoPort
(org.apache.hadoop.hbase.ServerName sn) HMaster.getRegionServerVersion
(org.apache.hadoop.hbase.ServerName sn) MasterServices.getRegionServerVersion
(org.apache.hadoop.hbase.ServerName sn) HashMap<String,
List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.replication.ReplicationLoadSource>>> HMaster.getReplicationLoad
(org.apache.hadoop.hbase.ServerName[] serverNames) DeadServer.getTimeOfDeath
(org.apache.hadoop.hbase.ServerName deadServerName) Get the time when a server diedServerManager.getVersion
(org.apache.hadoop.hbase.ServerName serverName) May return "0.0.0" when server is not onlineint
ServerManager.getVersionNumber
(org.apache.hadoop.hbase.ServerName serverName) May return 0 when server is not online.List<org.apache.hadoop.fs.FileStatus>
SplitWALManager.getWALsToSplit
(org.apache.hadoop.hbase.ServerName serverName, boolean splitMeta) void
SplitLogManager.Task.heartbeat
(long time, int version, org.apache.hadoop.hbase.ServerName worker) boolean
RegionState.isClosingOrClosedOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
DeadServer.isDeadServer
(org.apache.hadoop.hbase.ServerName serverName) boolean
RegionState.isMergingNewOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isMergingNewOrOfflineOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isMergingNewOrOpenedOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isMergingOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isOpenedOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isOpeningOrFailedOpenOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isOpeningOrOpenedOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
ServerManager.isServerDead
(org.apache.hadoop.hbase.ServerName serverName) Check if a server is known to be dead.org.apache.hadoop.hbase.master.ServerManager.ServerLiveState
ServerManager.isServerKnownAndOnline
(org.apache.hadoop.hbase.ServerName serverName) Returns whether the server is online, dead, or unknown.boolean
ServerManager.isServerOnline
(org.apache.hadoop.hbase.ServerName serverName) boolean
ServerManager.isServerUnknown
(org.apache.hadoop.hbase.ServerName serverName) Check if a server is unknown.boolean
RegionState.isSplittingNewOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isSplittingOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isSplittingOrOpenedOnServer
(org.apache.hadoop.hbase.ServerName sn) boolean
RegionState.isSplittingOrSplitOnServer
(org.apache.hadoop.hbase.ServerName sn) void
ServerManager.moveFromOnlineToDeadServers
(org.apache.hadoop.hbase.ServerName sn) Called when server has expired.void
MasterCoprocessorHost.postMove
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) void
MasterCoprocessorHost.postRecommissionRegionServer
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) void
MasterCoprocessorHost.preMove
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName srcServer, org.apache.hadoop.hbase.ServerName destServer) void
MasterCoprocessorHost.preRecommissionRegionServer
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) void
HMaster.recommissionRegionServer
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) Remove decommission marker (previously called 'draining') from a region server to allow regions assignments.void
LoadBalancer.regionOnline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn) Marks the region as online at balancer.void
ServerManager.regionServerReport
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.ServerMetrics sl) void
WorkerAssigner.release
(org.apache.hadoop.hbase.ServerName serverName) void
SplitWALManager.releaseSplitWALWorker
(org.apache.hadoop.hbase.ServerName worker, org.apache.hadoop.hbase.master.procedure.MasterProcedureScheduler scheduler) After the worker finished the split WAL task, it will release the worker, and wake up all the suspend procedures in the ProcedureEventboolean
DeadServer.removeDeadServer
(org.apache.hadoop.hbase.ServerName deadServerName) Called from rpc by operator cleaning up deadserver list.boolean
ServerManager.removeServerFromDrainList
(org.apache.hadoop.hbase.ServerName sn) default void
ServerListener.serverAdded
(org.apache.hadoop.hbase.ServerName serverName) The server has joined the cluster.void
WorkerAssigner.serverAdded
(org.apache.hadoop.hbase.ServerName worker) default void
ServerListener.serverRemoved
(org.apache.hadoop.hbase.ServerName serverName) The server was removed from the cluster.void
RegionPlan.setDestination
(org.apache.hadoop.hbase.ServerName dest) Set the destination server for the plan for this region.void
MasterWalManager.splitLog
(org.apache.hadoop.hbase.ServerName serverName) void
MasterWalManager.splitMetaLog
(org.apache.hadoop.hbase.ServerName serverName) Specialized method to handle the splitting for meta WALList<org.apache.hadoop.hbase.procedure2.Procedure>
SplitWALManager.splitWALs
(org.apache.hadoop.hbase.ServerName crashedServer, boolean splitMeta) void
MasterRegionServerList.started
(org.apache.hadoop.hbase.ServerName sn) void
RegionServerList.started
(org.apache.hadoop.hbase.ServerName sn) Called when a region server join the cluster.Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.master.RegionPlan>
LoadBalancer.balanceCluster
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) Perform the major balance operation for cluster.List<org.apache.hadoop.hbase.ServerName>
ServerManager.createDestinationServersList
(List<org.apache.hadoop.hbase.ServerName> serversToExclude) Creates a list of possible destinations for a region.void
HMaster.decommissionRegionServers
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) Mark region server(s) as decommissioned (previously called 'draining') to prevent additional regions from getting assigned to them.List<org.apache.hadoop.hbase.ServerName>
ServerManager.getOnlineServersListWithPredicator
(List<org.apache.hadoop.hbase.ServerName> keys, Predicate<org.apache.hadoop.hbase.ServerMetrics> idleServerPredicator) RackManager.getRack
(List<org.apache.hadoop.hbase.ServerName> servers) Same asRackManager.getRack(ServerName)
except that a list is passedvoid
MasterCoprocessorHost.postClearDeadServers
(List<org.apache.hadoop.hbase.ServerName> servers, List<org.apache.hadoop.hbase.ServerName> notClearedServers) void
MasterCoprocessorHost.postDecommissionRegionServers
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) void
MasterCoprocessorHost.preDecommissionRegionServers
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) org.apache.hadoop.hbase.ServerName
LoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, List<org.apache.hadoop.hbase.ServerName> servers) Get a random region server from the listLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) Assign regions to the previously hosting region serverLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) Assign regions to the previously hosting region servervoid
MasterWalManager.splitLog
(Set<org.apache.hadoop.hbase.ServerName> serverNames) void
MasterWalManager.splitLog
(Set<org.apache.hadoop.hbase.ServerName> serverNames, org.apache.hadoop.fs.PathFilter filter) This method is the base split method that splits WAL files matching a filter.long
SplitLogManager.splitLogDistributed
(Set<org.apache.hadoop.hbase.ServerName> serverNames, List<org.apache.hadoop.fs.Path> logDirs, org.apache.hadoop.fs.PathFilter filter) Deprecated.The caller will block until all the hbase:meta log files of the given region server have been processed - successfully split or an error is encountered - by an available worker region server.void
MasterWalManager.splitMetaLog
(Set<org.apache.hadoop.hbase.ServerName> serverNames) Specialized method to handle the splitting for meta WALdefault void
LoadBalancer.updateBalancerLoadInfo
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) In some scenarios, Balancer needs to update internal status or information according to the current tables loadvoid
RegionServerTracker.upgrade
(Set<org.apache.hadoop.hbase.ServerName> deadServersFromPE, Set<org.apache.hadoop.hbase.ServerName> liveServersBeforeRestart, Set<org.apache.hadoop.hbase.ServerName> splittingServersFromWALDir) Upgrade to active master mode, where besides tracking the changes of region server set, we will also started to add new region servers to ServerManager and also schedule SCP if a region server dies.ModifierConstructorDescriptionRegionPlan
(org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.ServerName source, org.apache.hadoop.hbase.ServerName dest) Instantiate a plan for a region move, moving the specified region from the specified source server to the specified destination server.RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long stamp, org.apache.hadoop.hbase.ServerName serverName) RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long stamp, org.apache.hadoop.hbase.ServerName serverName, long ritDuration) RegionState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, org.apache.hadoop.hbase.ServerName serverName) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.regionserver
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.ServerName
HRegionServer.createRegionServerStatusStub
(boolean refresh) Get the current master from ZooKeeper and open the RPC connection to it.Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.ServerName>
HRegionServer.getActiveMaster()
List<org.apache.hadoop.hbase.ServerName>
HRegionServer.getBackupMasters()
List<org.apache.hadoop.hbase.ServerName>
BootstrapNodeManager.getBootstrapNodes()
Iterator<org.apache.hadoop.hbase.ServerName>
HRegionServer.getBootstrapNodes()
Modifier and TypeMethodDescriptionprotected boolean
HRegionServer.closeRegion
(String encodedName, boolean abort, org.apache.hadoop.hbase.ServerName destination) Close asynchronously a region, can be called from the master or internally by the regionserver when stopping.boolean
HRegionServer.removeRegion
(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.ServerName destination) boolean
MutableOnlineRegions.removeRegion
(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.ServerName destination) Removes the given Region from the list of onlineRegions.ModifierConstructorDescriptionScannerIdGenerator
(org.apache.hadoop.hbase.ServerName serverName) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.regionserver.wal
ModifierConstructorDescriptionWALEventTrackerListener
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.namequeues.NamedQueueRecorder namedQueueRecorder, org.apache.hadoop.hbase.ServerName serverName) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.replication
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
ReplicationQueueId.getServerName()
org.apache.hadoop.hbase.ServerName
ReplicationQueueId.getServerWALsBelongTo()
Modifier and TypeMethodDescriptionprotected Collection<org.apache.hadoop.hbase.ServerName>
HBaseReplicationEndpoint.fetchPeerAddresses()
Get the list of all the region servers from the specified peerList<org.apache.hadoop.hbase.ServerName>
ReplicationQueueInfo.getDeadRegionServers()
Optional<org.apache.hadoop.hbase.ServerName>
ReplicationQueueId.getSourceServerName()
org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration.MigrationIterator<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.ServerName,
List<org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration.ZkReplicationQueueData>>> ZKReplicationQueueStorageForMigration.listAllQueues()
List<org.apache.hadoop.hbase.ServerName>
ReplicationQueueStorage.listAllReplicators()
Get a list of all region servers that have outstanding replication queues.List<org.apache.hadoop.hbase.ServerName>
TableReplicationQueueStorage.listAllReplicators()
Modifier and TypeMethodDescriptionvoid
ReplicationQueueStorage.batchUpdateQueues
(org.apache.hadoop.hbase.ServerName serverName, List<org.apache.hadoop.hbase.replication.ReplicationQueueData> datas) Update the replication queue datas for a given region server.void
TableReplicationQueueStorage.batchUpdateQueues
(org.apache.hadoop.hbase.ServerName serverName, List<org.apache.hadoop.hbase.replication.ReplicationQueueData> datas) org.apache.hadoop.hbase.replication.ReplicationQueueId
ReplicationQueueId.claim
(org.apache.hadoop.hbase.ServerName targetServerName) ReplicationQueueStorage.claimQueue
(org.apache.hadoop.hbase.replication.ReplicationQueueId queueId, org.apache.hadoop.hbase.ServerName targetServerName) Change ownership for the queue identified by queueId and belongs to a dead region server.TableReplicationQueueStorage.claimQueue
(org.apache.hadoop.hbase.replication.ReplicationQueueId queueId, org.apache.hadoop.hbase.ServerName targetServerName) static byte[]
ReplicationQueueId.getScanPrefix
(org.apache.hadoop.hbase.ServerName serverName, String peerId) List<org.apache.hadoop.hbase.replication.ReplicationQueueId>
ReplicationQueueStorage.listAllQueueIds
(String peerId, org.apache.hadoop.hbase.ServerName serverName) Get a list of all queues for the specific region server and the specific peerList<org.apache.hadoop.hbase.replication.ReplicationQueueId>
ReplicationQueueStorage.listAllQueueIds
(org.apache.hadoop.hbase.ServerName serverName) Get a list of all queues for the specific region server.List<org.apache.hadoop.hbase.replication.ReplicationQueueId>
TableReplicationQueueStorage.listAllQueueIds
(String peerId, org.apache.hadoop.hbase.ServerName serverName) List<org.apache.hadoop.hbase.replication.ReplicationQueueId>
TableReplicationQueueStorage.listAllQueueIds
(org.apache.hadoop.hbase.ServerName serverName) void
ReplicationListener.regionServerRemoved
(org.apache.hadoop.hbase.ServerName regionServer) A region server has been removed from the local clusterModifierConstructorDescriptionReplicationQueueId
(org.apache.hadoop.hbase.ServerName serverName, String peerId) ReplicationQueueId
(org.apache.hadoop.hbase.ServerName serverName, String peerId, org.apache.hadoop.hbase.ServerName sourceServerName) SinkPeer
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.client.AsyncRegionServerAdmin regionServer) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.rest
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
RESTServer.getServerName()
-
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.rsgroup
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
RSGroupBasedLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionRSGroupBasedLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) RSGroupBasedLoadBalancer.roundRobinAssignment
(List<org.apache.hadoop.hbase.client.RegionInfo> regions, List<org.apache.hadoop.hbase.ServerName> servers) Modifier and TypeMethodDescriptionvoid
RSGroupBasedLoadBalancer.regionOnline
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName sn) Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.master.RegionPlan>
RSGroupBasedLoadBalancer.balanceCluster
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) Balance by RSGroup.org.apache.hadoop.hbase.ServerName
RSGroupBasedLoadBalancer.randomAssignment
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) RSGroupBasedLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) RSGroupBasedLoadBalancer.retainAssignment
(Map<org.apache.hadoop.hbase.client.RegionInfo, org.apache.hadoop.hbase.ServerName> regions, List<org.apache.hadoop.hbase.ServerName> servers) void
RSGroupBasedLoadBalancer.updateBalancerLoadInfo
(Map<org.apache.hadoop.hbase.TableName, Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> loadOfAllTable) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.shaded.protobuf
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.ServerName
ProtobufUtil.parseServerNameFrom
(byte[] data) Get a ServerName from the passed in data bytes.static org.apache.hadoop.hbase.ServerName
ProtobufUtil.toServerName
(byte[] data) Get a ServerName from the passed in data bytes.static org.apache.hadoop.hbase.ServerName
ProtobufUtil.toServerName
(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName proto) Convert a protocol buffer ServerName to a ServerNameModifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.ServerName>
ProtobufUtil.toServerNameList
(List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> proto) Convert a list of protocol buffer ServerName to a list of ServerNameModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionRequest
ProtobufUtil.buildCloseRegionRequest
(org.apache.hadoop.hbase.ServerName server, byte[] regionName) Create a CloseRegionRequest for a given region namestatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionRequest
ProtobufUtil.buildCloseRegionRequest
(org.apache.hadoop.hbase.ServerName server, byte[] regionName, org.apache.hadoop.hbase.ServerName destinationServer) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionRequest
ProtobufUtil.buildCloseRegionRequest
(org.apache.hadoop.hbase.ServerName server, byte[] regionName, org.apache.hadoop.hbase.ServerName destinationServer, long closeProcId) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionRequest
ProtobufUtil.buildCloseRegionRequest
(org.apache.hadoop.hbase.ServerName server, byte[] regionName, org.apache.hadoop.hbase.ServerName destinationServer, long closeProcId, boolean evictCache, long initiatingMasterActiveTime) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetServerInfoResponse
ResponseConverter.buildGetServerInfoResponse
(org.apache.hadoop.hbase.ServerName serverName, int webuiPort) A utility to build a GetServerInfoResponse.static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MoveRegionRequest
RequestConverter.buildMoveRegionRequest
(byte[] encodedRegionName, org.apache.hadoop.hbase.ServerName destServerName) Create a protocol buffer MoveRegionRequeststatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest
RequestConverter.buildOpenRegionRequest
(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> favoredNodes) Create a protocol buffer OpenRegionRequest for a given regionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.RecommissionRegionServerRequest
RequestConverter.buildRecommissionRegionServerRequest
(org.apache.hadoop.hbase.ServerName server, List<byte[]> encodedRegionNames) static void
ProtobufUtil.closeRegion
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, org.apache.hadoop.hbase.ServerName server, byte[] regionName) A helper to close a region given a region name using admin protocol.static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.CloseRegionRequest.Builder
ProtobufUtil.getBuilder
(org.apache.hadoop.hbase.ServerName server, byte[] regionName, org.apache.hadoop.hbase.ServerName destinationServer, long closeProcId) static void
ProtobufUtil.openRegion
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region) A helper to open a region using admin protocol.static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor
ProtobufUtil.toRegionEventDescriptor
(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor.EventType eventType, byte[] tableNameAsBytes, byte[] encodedNameAsBytes, byte[] regionNameAsBytes, long seqId, org.apache.hadoop.hbase.ServerName server, Map<byte[], List<org.apache.hadoop.fs.Path>> storeFiles) static org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor
ProtobufUtil.toRegionEventDescriptor
(org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor.EventType eventType, org.apache.hadoop.hbase.client.RegionInfo hri, long seqId, org.apache.hadoop.hbase.ServerName server, Map<byte[], List<org.apache.hadoop.fs.Path>> storeFiles) static org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName
ProtobufUtil.toServerName
(org.apache.hadoop.hbase.ServerName serverName) Convert a ServerName to a protocol buffer ServerNameModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ClearDeadServersRequest
RequestConverter.buildClearDeadServersRequest
(Collection<org.apache.hadoop.hbase.ServerName> deadServers) static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DecommissionRegionServersRequest
RequestConverter.buildDecommissionRegionServersRequest
(List<org.apache.hadoop.hbase.ServerName> servers, boolean offload) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest
RequestConverter.buildOpenRegionRequest
(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> favoredNodes) Create a protocol buffer OpenRegionRequest for a given regionstatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest.RegionOpenInfo
RequestConverter.buildRegionOpenInfo
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> favoredNodes, long openProcId) Create a RegionOpenInfo based on given region info and version of offline nodestatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.UpdateFavoredNodesRequest
RequestConverter.buildUpdateFavoredNodesRequest
(List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo, List<org.apache.hadoop.hbase.ServerName>>> updateRegionInfos) Create a protocol buffer UpdateFavoredNodesRequest to update a list of favorednode mappingsstatic org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.ScheduleServerCrashProcedureRequest
RequestConverter.toScheduleServerCrashProcedureRequest
(List<org.apache.hadoop.hbase.ServerName> serverNames) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.testing
Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.ServerName>
TestingHBaseCluster.getActiveMasterAddress()
Get the address of active master if there is one.List<org.apache.hadoop.hbase.ServerName>
TestingHBaseCluster.getBackupMasterAddresses()
Get all the backup master addresses.List<org.apache.hadoop.hbase.ServerName>
TestingHBaseCluster.getRegionServerAddresses()
Get all the region server addresses.Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.regionserver.OnlineRegions>
TestingHBaseCluster.getOnlineRegionsInterface
(org.apache.hadoop.hbase.ServerName serverName) Get the server sideOnlineRegions
interface for the specific region server.TestingHBaseCluster.stopMaster
(org.apache.hadoop.hbase.ServerName serverName) Stop the given master.TestingHBaseCluster.stopRegionServer
(org.apache.hadoop.hbase.ServerName serverName) Stop the given region server. -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.util
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
HbckRegionInfo.MetaEntry.getRegionServer()
Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
HbckRegionInfo.getDeployedOn()
Modifier and TypeMethodDescriptionvoid
HbckRegionInfo.addServer
(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName) void
HbckTableInfo.addServer
(org.apache.hadoop.hbase.ServerName server) static void
HBaseFsckRepair.closeRegionSilentlyAndWait
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.RegionInfo region) Contacts a region server and waits up to hbase.hbck.close.timeout ms (default 120s) to close the region.Modifier and TypeMethodDescriptionstatic void
HBaseFsckRepair.fixMetaHoleOnlineAndAddReplicas
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri, Collection<org.apache.hadoop.hbase.ServerName> servers, int numReplicas) Puts the specified RegionInfo into META with replica related columnsstatic void
HBaseFsckRepair.fixMultiAssignment
(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.ServerName> servers) Fix multiple assignment by doing silent closes on each RS hosting the region and then force ZK unassigned node to OFFLINE to trigger assignment by master.ModifierConstructorDescriptionMetaEntry
(org.apache.hadoop.hbase.client.RegionInfo rinfo, org.apache.hadoop.hbase.ServerName regionServer, long modTime) MetaEntry
(org.apache.hadoop.hbase.client.RegionInfo rinfo, org.apache.hadoop.hbase.ServerName regionServer, long modTime, org.apache.hadoop.hbase.client.RegionInfo splitA, org.apache.hadoop.hbase.client.RegionInfo splitB) -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.wal
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.ServerName
AbstractFSWALProvider.getServerNameFromWALDirectoryName
(org.apache.hadoop.conf.Configuration conf, String path) Pulls a ServerName out of a Path generated according to our layout rules.static org.apache.hadoop.hbase.ServerName
AbstractFSWALProvider.getServerNameFromWALDirectoryName
(org.apache.hadoop.fs.Path logFile) This function returns region server name from a log file name which is in one of the following formats: hdfs://<name node>/hbase/.logs/<server name>-splitting/... hdfs://<name node>/hbase/.logs/<server name>/...static org.apache.hadoop.hbase.ServerName
AbstractFSWALProvider.parseServerNameFromWALName
(String name) Parse the server name from wal prefix.Modifier and TypeMethodDescriptionstatic List<org.apache.hadoop.fs.Path>
AbstractFSWALProvider.getArchivedWALFiles
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ServerName serverName, String logPrefix) List all the old wal files for a dead region server.static List<org.apache.hadoop.fs.Path>
AbstractFSWALProvider.getWALFiles
(org.apache.hadoop.conf.Configuration c, org.apache.hadoop.hbase.ServerName serverName) List all the wal files for a logPrefix.ModifierConstructorDescriptionWALFactory
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.Abortable abortable) Create a WALFactory. -
Uses of org.apache.hadoop.hbase.ServerName in org.apache.hadoop.hbase.zookeeper
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ServerName
MasterAddressTracker.getMasterAddress()
Get the address of the current master if one is available.org.apache.hadoop.hbase.ServerName
MasterAddressTracker.getMasterAddress
(boolean refresh) Get the address of the current master if one is available.static org.apache.hadoop.hbase.ServerName
MasterAddressTracker.getMasterAddress
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw) Get master address.static org.apache.hadoop.hbase.ServerName
MetaTableLocator.getMetaRegionLocation
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw) Gets the meta region location, if available.static org.apache.hadoop.hbase.ServerName
MetaTableLocator.getMetaRegionLocation
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, int replicaId) Gets the meta region location, if available.static org.apache.hadoop.hbase.ServerName[]
ZKServerTool.readZKNodes
(org.apache.hadoop.conf.Configuration conf) static org.apache.hadoop.hbase.ServerName
MetaTableLocator.waitMetaRegionLocation
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, long timeout) Gets the meta region location, if available, and waits for up to the specified timeout if not immediately available.Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.ServerName>
MasterAddressTracker.getBackupMasters()
static List<org.apache.hadoop.hbase.ServerName>
MasterAddressTracker.getBackupMastersAndRenewWatch
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw) Retrieves the list of registered backup masters and renews a watch on the znode for children updates.Modifier and TypeMethodDescriptionint
MasterAddressTracker.getBackupMasterInfoPort
(org.apache.hadoop.hbase.ServerName sn) Get the info port of the backup master if it is available.static int
MasterAddressTracker.getBackupMasterInfoPort
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, org.apache.hadoop.hbase.ServerName sn) Get backup master info port.ZNodePaths.getRsPath
(org.apache.hadoop.hbase.ServerName sn) static boolean
MasterAddressTracker.setMasterAddress
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw, String znode, org.apache.hadoop.hbase.ServerName master, int infoPort) Set master address into themaster
znode or into the backup subdirectory of backup masters; switch off the passed inznode
path.static void
MetaTableLocator.setMetaLocation
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zookeeper, org.apache.hadoop.hbase.ServerName serverName, int replicaId, org.apache.hadoop.hbase.master.RegionState.State state) Sets the location ofhbase:meta
in ZooKeeper to the specified server address.static void
MetaTableLocator.setMetaLocation
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zookeeper, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.master.RegionState.State state) Sets the location ofhbase:meta
in ZooKeeper to the specified server address.
MetaTableAccessor.getRegionLocation(Connection, byte[])
instead