@InterfaceAudience.Public public class ExportSnapshot extends org.apache.hadoop.hbase.util.AbstractHBaseTool implements org.apache.hadoop.util.Tool
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_DEST_PREFIX
Configuration prefix for overrides for the destination filesystem
|
protected static String |
CONF_SKIP_TMP |
static String |
CONF_SOURCE_PREFIX
Configuration prefix for overrides for the source filesystem
|
static String |
NAME |
| Constructor and Description |
|---|
ExportSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods. |
int |
doWork()
Execute the export snapshot by copying the snapshot metadata, hfiles and wals.
|
static void |
main(String[] args) |
protected void |
printUsage() |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
This method is called to process the options after they have been parsed.
|
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, processOldArgs, run, setConfpublic static final String NAME
public static final String CONF_SOURCE_PREFIX
public static final String CONF_DEST_PREFIX
protected static final String CONF_SKIP_TMP
public ExportSnapshot()
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
org.apache.hadoop.hbase.util.AbstractHBaseToolprocessOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToolpublic int doWork() throws IOException
doWork in class org.apache.hadoop.hbase.util.AbstractHBaseToolIOExceptionprotected void printUsage()
printUsage in class org.apache.hadoop.hbase.util.AbstractHBaseToolprotected void addOptions()
org.apache.hadoop.hbase.util.AbstractHBaseToolAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods.addOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToolCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.