|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.HBaseFsckRepair
public class HBaseFsckRepair
This class contains helper methods that repair parts of hbase's filesystem contents.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
HBaseFsckRepair()
|
Method Summary | |
---|---|
static void |
closeRegionSilentlyAndWait(HBaseAdmin admin,
HServerAddress server,
HRegionInfo 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,
HRegionInfo hri)
Creates, flushes, and closes a new hdfs region dir |
static void |
fixMetaHoleOnline(org.apache.hadoop.conf.Configuration conf,
HRegionInfo hri)
Puts the specified HRegionInfo into META. |
static void |
fixMultiAssignment(HBaseAdmin admin,
HRegionInfo region,
List<HServerAddress> servers)
Fix dupe 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 |
fixTableDesc(HBaseAdmin admin,
HServerAddress hsa,
HBaseFsck.HbckInfo hbi,
HTableDescriptor htd,
org.apache.hadoop.fs.Path sidelineTableDir)
Replace the .regioninfo with a new one with the expected table desc, then re-assign the region. |
static void |
fixUnassigned(HBaseAdmin admin,
HRegionInfo 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 |
waitUntilAssigned(HBaseAdmin admin,
HRegionInfo region)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public HBaseFsckRepair()
Method Detail |
---|
public static void fixMultiAssignment(HBaseAdmin admin, HRegionInfo region, List<HServerAddress> servers) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
conf
- region
- servers
-
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public static void fixUnassigned(HBaseAdmin admin, HRegionInfo region) throws IOException, org.apache.zookeeper.KeeperException
conf
- region
-
IOException
org.apache.zookeeper.KeeperException
public static void waitUntilAssigned(HBaseAdmin admin, HRegionInfo region) throws IOException, InterruptedException
IOException
InterruptedException
public static void closeRegionSilentlyAndWait(HBaseAdmin admin, HServerAddress server, HRegionInfo region) throws IOException, InterruptedException
IOException
InterruptedException
public static void fixMetaHoleOnline(org.apache.hadoop.conf.Configuration conf, HRegionInfo hri) throws IOException
IOException
public static void fixTableDesc(HBaseAdmin admin, HServerAddress hsa, HBaseFsck.HbckInfo hbi, HTableDescriptor htd, org.apache.hadoop.fs.Path sidelineTableDir) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public static HRegion createHDFSRegionDir(org.apache.hadoop.conf.Configuration conf, HRegionInfo hri) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |