@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() |
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.commons.cli.CommandLine cmd) |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, 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
protected void processOptions(org.apache.commons.cli.CommandLine cmd)
processOptions in class AbstractHBaseToolpublic int doWork()
throws IOException
doWork in class AbstractHBaseToolIOExceptionprotected void printUsage()
printUsage in class AbstractHBaseToolprotected void addOptions()
addOptions in class AbstractHBaseToolpublic static void main(String[] args)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.