@InterfaceAudience.Private public class HBaseFsckRepair extends Object
| Constructor and Description |
|---|
HBaseFsckRepair() |
| Modifier and Type | Method and Description |
|---|---|
static void |
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.
|
static HRegion |
createHDFSRegionDir(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.RegionInfo hri,
org.apache.hadoop.hbase.client.TableDescriptor htd)
Creates, flushes, and closes a new region.
|
static void |
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 columns
|
static void |
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.
|
static void |
fixUnassigned(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.client.RegionInfo region)
Fix unassigned by creating/transition the unassigned ZK node for this
region to OFFLINE state with a special flag to tell the master that this is
a forced operation by HBCK.
|
static void |
removeParentInMeta(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
waitUntilAssigned(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.client.RegionInfo region) |
public static void fixMultiAssignment(org.apache.hadoop.hbase.client.Connection connection,
org.apache.hadoop.hbase.client.RegionInfo region,
List<org.apache.hadoop.hbase.ServerName> servers)
throws IOException,
org.apache.zookeeper.KeeperException,
InterruptedException
connection - HBase connection to the clusterregion - Region to undeployservers - list of Servers to undeploy fromIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic static void fixUnassigned(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.client.RegionInfo region)
throws IOException,
org.apache.zookeeper.KeeperException,
InterruptedException
admin - region - IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic static void waitUntilAssigned(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.client.RegionInfo region)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static void closeRegionSilentlyAndWait(org.apache.hadoop.hbase.client.Connection connection,
org.apache.hadoop.hbase.ServerName server,
org.apache.hadoop.hbase.client.RegionInfo region)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static void fixMetaHoleOnlineAndAddReplicas(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.RegionInfo hri,
Collection<org.apache.hadoop.hbase.ServerName> servers,
int numReplicas)
throws IOException
IOExceptionpublic static HRegion createHDFSRegionDir(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.RegionInfo hri, org.apache.hadoop.hbase.client.TableDescriptor htd) throws IOException
IOExceptionpublic static void removeParentInMeta(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.RegionInfo hri)
throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.