org.apache.hadoop.hbase.util
Class HBaseFsckRepair
java.lang.Object
org.apache.hadoop.hbase.util.HBaseFsckRepair
public class HBaseFsckRepair
- extends Object
Method Summary |
static void |
fixDupeAssignment(HBaseAdmin admin,
HRegionInfo region,
List<ServerName> 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(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. |
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(HBaseAdmin admin,
HRegionInfo region,
List<ServerName> 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:
admin
- region
- servers
-
- Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
fixUnassigned
public static void fixUnassigned(HBaseAdmin admin,
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:
admin
- region
-
- Throws:
IOException
org.apache.zookeeper.KeeperException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.