org.apache.hadoop.hbase.snapshot
Class ExportSnapshot

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

@InterfaceAudience.Public
@InterfaceStability.Evolving
public final class ExportSnapshot
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool

Export the specified snapshot to a given FileSystem. The .snapshot/name folder is copied to the destination cluster and then all the hfiles/hlogs are copied using a Map-Reduce Job in the .archive/ location. When everything is done, the second cluster can restore the snapshot.


Nested Class Summary
static class ExportSnapshot.Counter
           
 
Constructor Summary
ExportSnapshot()
           
 
Method Summary
static void main(String[] args)
           
 int run(String[] args)
          Execute the export snapshot by copying the snapshot metadata, hfiles and hlogs.
 
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

ExportSnapshot

public ExportSnapshot()
Method Detail

run

public int run(String[] args)
        throws Exception
Execute the export snapshot by copying the snapshot metadata, hfiles and hlogs.

Specified by:
run in interface org.apache.hadoop.util.Tool
Returns:
0 on success, and != 0 upon failure.
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


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