Modifier and Type | Method and Description |
---|---|
CatalogTracker |
Server.getCatalogTracker() |
Modifier and Type | Method and Description |
---|---|
static void |
MetaEditor.addDaughter(CatalogTracker catalogTracker,
HRegionInfo regionInfo,
ServerName sn,
long openSeqNum)
Adds a daughter region entry to meta.
|
static void |
MetaEditor.addRegionsToMeta(CatalogTracker catalogTracker,
List<HRegionInfo> regionInfos)
Adds a hbase:meta row for each of the specified new regions.
|
static void |
MetaEditor.addRegionToMeta(CatalogTracker catalogTracker,
HRegionInfo regionInfo)
Adds a hbase:meta row for the specified new region.
|
static void |
MetaEditor.addRegionToMeta(CatalogTracker catalogTracker,
HRegionInfo regionInfo,
HRegionInfo splitA,
HRegionInfo splitB)
Adds a (single) hbase:meta row for the specified new region and its daughters.
|
static void |
MetaEditor.deleteFromMetaTable(CatalogTracker ct,
List<Delete> deletes)
Delete the passed
deletes from the hbase:meta table. |
static void |
MetaEditor.deleteMergeQualifiers(CatalogTracker catalogTracker,
HRegionInfo mergedRegion)
Deletes merge qualifiers for the specified merged region.
|
static void |
MetaEditor.deleteRegion(CatalogTracker catalogTracker,
HRegionInfo regionInfo)
Deletes the specified region from META.
|
static void |
MetaEditor.deleteRegions(CatalogTracker catalogTracker,
List<HRegionInfo> regionsInfo)
Deletes the specified regions from META.
|
static List<Result> |
MetaReader.fullScan(CatalogTracker catalogTracker)
Performs a full scan of
hbase:meta . |
static void |
MetaReader.fullScan(CatalogTracker catalogTracker,
MetaReader.Visitor visitor)
Performs a full scan of
hbase:meta . |
static void |
MetaReader.fullScan(CatalogTracker catalogTracker,
MetaReader.Visitor visitor,
byte[] startrow)
Performs a full scan of a catalog table.
|
static Map<HRegionInfo,ServerName> |
MetaReader.fullScan(CatalogTracker catalogTracker,
Set<TableName> disabledTables)
Performs a full scan of
hbase:meta , skipping regions from any
tables in the specified set of disabled tables. |
static Map<HRegionInfo,ServerName> |
MetaReader.fullScan(CatalogTracker catalogTracker,
Set<TableName> disabledTables,
boolean excludeOfflinedSplitParents)
Performs a full scan of
hbase:meta , skipping regions from any
tables in the specified set of disabled tables. |
static void |
MetaReader.fullScanMetaAndPrint(CatalogTracker catalogTracker) |
static List<Result> |
MetaReader.fullScanOfMeta(CatalogTracker catalogTracker)
Performs a full scan of a
hbase:meta table. |
static Pair<HRegionInfo,ServerName> |
MetaReader.getRegion(CatalogTracker catalogTracker,
byte[] regionName)
Gets the region info and assignment for the specified region.
|
static Result |
MetaReader.getRegionResult(CatalogTracker catalogTracker,
byte[] regionName)
Gets the result in hbase:meta for the specified region.
|
static Pair<HRegionInfo,HRegionInfo> |
MetaReader.getRegionsFromMergeQualifier(CatalogTracker catalogTracker,
byte[] regionName)
Get regions from the merge qualifier of the specified merged region
|
static NavigableMap<HRegionInfo,Result> |
MetaReader.getServerUserRegions(CatalogTracker catalogTracker,
ServerName serverName) |
static List<HRegionInfo> |
MetaReader.getTableRegions(CatalogTracker catalogTracker,
TableName tableName)
Gets all of the regions of the specified table.
|
static List<HRegionInfo> |
MetaReader.getTableRegions(CatalogTracker catalogTracker,
TableName tableName,
boolean excludeOfflinedSplitParents)
Gets all of the regions of the specified table.
|
static List<Pair<HRegionInfo,ServerName>> |
MetaReader.getTableRegionsAndLocations(CatalogTracker catalogTracker,
TableName tableName) |
static List<Pair<HRegionInfo,ServerName>> |
MetaReader.getTableRegionsAndLocations(CatalogTracker catalogTracker,
TableName tableName,
boolean excludeOfflinedSplitParents) |
static void |
MetaEditor.mergeRegions(CatalogTracker catalogTracker,
HRegionInfo mergedRegion,
HRegionInfo regionA,
HRegionInfo regionB,
ServerName sn)
Merge the two regions into one in an atomic operation.
|
static void |
MetaEditor.mutateMetaTable(CatalogTracker ct,
List<Mutation> mutations)
Execute the passed
mutations against hbase:meta table. |
static void |
MetaEditor.mutateRegions(CatalogTracker catalogTracker,
List<HRegionInfo> regionsToRemove,
List<HRegionInfo> regionsToAdd)
Adds and Removes the specified regions from hbase:meta
|
static void |
MetaEditor.overwriteRegions(CatalogTracker catalogTracker,
List<HRegionInfo> regionInfos)
Overwrites the specified regions from hbase:meta
|
static void |
MetaEditor.putsToMetaTable(CatalogTracker ct,
List<Put> ps)
Put the passed
ps to the hbase:meta table. |
static void |
MetaEditor.splitRegion(CatalogTracker catalogTracker,
HRegionInfo parent,
HRegionInfo splitA,
HRegionInfo splitB,
ServerName sn)
Splits the region into two in an atomic operation.
|
static boolean |
MetaReader.tableExists(CatalogTracker catalogTracker,
TableName tableName)
Checks if the specified table exists.
|
static void |
MetaEditor.updateMetaLocation(CatalogTracker catalogTracker,
HRegionInfo regionInfo,
ServerName sn,
long openSeqNum)
Updates the location of the specified hbase:meta region in ROOT to be the
specified server hostname and startcode.
|
static void |
MetaEditor.updateRegionLocation(CatalogTracker catalogTracker,
HRegionInfo regionInfo,
ServerName sn,
long updateSeqNum)
Updates the location of the specified region in hbase:meta to be the specified
server hostname and startcode.
|
Modifier and Type | Method and Description |
---|---|
CatalogTracker |
HMaster.getCatalogTracker() |
Constructor and Description |
---|
AssignmentManager(Server server,
ServerManager serverManager,
CatalogTracker catalogTracker,
LoadBalancer balancer,
ExecutorService service,
MetricsMaster metricsMaster,
TableLockManager tableLockManager)
Constructs a new assignment manager.
|
SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker) |
SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker,
Set<TableName> disabledTables,
boolean excludeOfflinedSplitParents) |
Modifier and Type | Method and Description |
---|---|
static void |
FavoredNodeAssignmentHelper.updateMetaWithFavoredNodesInfo(Map<HRegionInfo,List<ServerName>> regionToFavoredNodes,
CatalogTracker catalogTracker)
Update meta table with favored nodes info
|
Modifier and Type | Method and Description |
---|---|
protected void |
CreateTableHandler.addRegionsToMeta(CatalogTracker ct,
List<HRegionInfo> regionInfos)
Add the specified set of regions to the hbase:meta table.
|
static boolean |
ServerShutdownHandler.processDeadRegion(HRegionInfo hri,
AssignmentManager assignmentManager,
CatalogTracker catalogTracker)
Process a dead region from a dead RS.
|
Constructor and Description |
---|
DisableTableHandler(Server server,
TableName tableName,
CatalogTracker catalogTracker,
AssignmentManager assignmentManager,
TableLockManager tableLockManager,
boolean skipTableStateCheck) |
EnableTableHandler(Server server,
TableName tableName,
CatalogTracker catalogTracker,
AssignmentManager assignmentManager,
TableLockManager tableLockManager,
boolean skipTableStateCheck) |
Modifier and Type | Method and Description |
---|---|
protected void |
CloneSnapshotHandler.addRegionsToMeta(CatalogTracker ct,
List<HRegionInfo> regionInfos) |
Modifier and Type | Field and Description |
---|---|
protected CatalogTracker |
HRegionServer.catalogTracker |
Modifier and Type | Method and Description |
---|---|
CatalogTracker |
HRegionServer.getCatalogTracker() |
CatalogTracker |
RegionServerServices.getCatalogTracker() |
Modifier and Type | Method and Description |
---|---|
void |
HRegionServer.postOpenDeployTasks(HRegion r,
CatalogTracker ct) |
void |
RegionServerServices.postOpenDeployTasks(HRegion r,
CatalogTracker ct)
Tasks to perform after region open to complete deploy of region on
regionserver
|
Modifier and Type | Method and Description |
---|---|
void |
RestoreSnapshotHelper.RestoreMetaChanges.updateMetaParentRegions(CatalogTracker catalogTracker,
List<HRegionInfo> regionInfos) |
Copyright © 2014 The Apache Software Foundation. All rights reserved.