org.apache.hadoop.hbase.util
Class HBaseFsckRepair
java.lang.Object
org.apache.hadoop.hbase.util.HBaseFsckRepair
public class HBaseFsckRepair
- extends Object
Method Summary |
protected static void |
closeRegionSilentlyAndWait(org.apache.hadoop.conf.Configuration conf,
HServerAddress server,
HRegionInfo region)
|
static void |
fixDupeAssignment(org.apache.hadoop.conf.Configuration conf,
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 |
fixUnassigned(org.apache.hadoop.conf.Configuration conf,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HBaseFsckRepair
public HBaseFsckRepair()
fixDupeAssignment
public static void fixDupeAssignment(org.apache.hadoop.conf.Configuration conf,
HRegionInfo region,
List<HServerAddress> servers)
throws IOException,
org.apache.zookeeper.KeeperException,
InterruptedException
- 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.
- Parameters:
conf
- region
- servers
-
- Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
fixUnassigned
public static void fixUnassigned(org.apache.hadoop.conf.Configuration conf,
HRegionInfo region)
throws IOException,
org.apache.zookeeper.KeeperException
- 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.
- Parameters:
conf
- region
-
- Throws:
IOException
org.apache.zookeeper.KeeperException
closeRegionSilentlyAndWait
protected static void closeRegionSilentlyAndWait(org.apache.hadoop.conf.Configuration conf,
HServerAddress server,
HRegionInfo region)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.