org.apache.hadoop.hbase.snapshot
Class ExportSnapshot
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.snapshot.ExportSnapshot
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
@InterfaceAudience.Public
@InterfaceStability.Evolving
public 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.
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 |
NAME
public static final String NAME
- See Also:
- Constant Field Values
CONF_SOURCE_PREFIX
public static final String CONF_SOURCE_PREFIX
- Configuration prefix for overrides for the source filesystem
- See Also:
- Constant Field Values
CONF_DEST_PREFIX
public static final String CONF_DEST_PREFIX
- Configuration prefix for overrides for the destination filesystem
- See Also:
- Constant Field Values
CONF_SKIP_TMP
protected static final String CONF_SKIP_TMP
- See Also:
- Constant Field Values
ExportSnapshot
public ExportSnapshot()
run
public int run(String[] args)
throws IOException
- 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:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.