org.apache.hadoop.hbase.replication.regionserver
Class ReplicationSyncUp

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class ReplicationSyncUp
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool

In a scenario of Replication based Disaster/Recovery, when hbase Master-Cluster crashes, this tool is used to sync-up the delta from Master to Slave using the info from Zookeeper. The tool will run on Master-Cluser, and assume ZK, Filesystem and NetWork still available after hbase crashes hbase org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp


Constructor Summary
ReplicationSyncUp()
           
 
Method Summary
static void main(String[] args)
          Main program
 int run(String[] args)
           
static void setConfigure(org.apache.hadoop.conf.Configuration config)
           
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

ReplicationSyncUp

public ReplicationSyncUp()
Method Detail

setConfigure

public static void setConfigure(org.apache.hadoop.conf.Configuration config)

main

public static void main(String[] args)
                 throws Exception
Main program

Parameters:
args -
Throws:
Exception

run

public int run(String[] args)
        throws Exception
Specified by:
run in interface org.apache.hadoop.util.Tool
Throws:
Exception


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.