@InterfaceAudience.Public public class ExportSnapshot extends AbstractHBaseTool implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
ExportSnapshot.Counter |
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 |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
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, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, processOldArgs, run, setConf
public 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
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseTool
processOptions
in class AbstractHBaseTool
public int doWork() throws IOException
doWork
in class AbstractHBaseTool
IOException
protected void printUsage()
printUsage
in class AbstractHBaseTool
protected void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class AbstractHBaseTool
public static void main(String[] args)
Copyright © 2007–2019 Cloudera. All rights reserved.