@InterfaceAudience.LimitedPrivate(value="Tools") public class HFileContentValidator extends AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| Constructor and Description |
|---|
HFileContentValidator() |
| 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. |
private ExecutorService |
createThreadPool(org.apache.hadoop.conf.Configuration conf) |
protected int |
doWork()
The "main function" of the tool
|
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.
|
private boolean |
validateHFileContent(org.apache.hadoop.conf.Configuration conf)
Check HFile contents are readable by HBase 2.
|
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprivate static final org.slf4j.Logger LOG
public HFileContentValidator()
private boolean validateHFileContent(org.apache.hadoop.conf.Configuration conf) throws IOException
conf - used configurationIOException - if a remote or network exception occursprivate ExecutorService createThreadPool(org.apache.hadoop.conf.Configuration conf)
protected void addOptions()
AbstractHBaseToolAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions in class AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseToolprocessOptions in class AbstractHBaseToolprotected int doWork() throws Exception
AbstractHBaseTooldoWork in class AbstractHBaseToolExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.