Class HFileProcedurePrettyPrinter
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.procedure2.store.region.HFileProcedurePrettyPrinter
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
@LimitedPrivate("Tools")
@Evolving
public class HFileProcedurePrettyPrinter
extends AbstractHBaseTool
A tool to dump the procedures in the HFiles.
The different between this and
HFilePrettyPrinter is
that, this class will decode the procedure in the cell for better debugging. You are free to use
HFilePrettyPrinter to dump the same file as well.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<org.apache.hadoop.fs.Path>private final PrintStreamprivate LongFields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected voidOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.protected intdoWork()The "main function" of the toolstatic voidprivate voidprivate voidprocessFile(org.apache.hadoop.fs.Path file) protected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) This method is called to process the options after they have been parsed.Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
procId
-
files
-
out
-
-
Constructor Details
-
HFileProcedurePrettyPrinter
public HFileProcedurePrettyPrinter() -
HFileProcedurePrettyPrinter
-
-
Method Details
-
addOptions
Description copied from class:AbstractHBaseToolOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.- Specified by:
addOptionsin classAbstractHBaseTool
-
addAllHFiles
- Throws:
IOException
-
processOptions
Description copied from class:AbstractHBaseToolThis method is called to process the options after they have been parsed.- Specified by:
processOptionsin classAbstractHBaseTool
-
printCell
- Throws:
IOException
-
processFile
- Throws:
IOException
-
doWork
Description copied from class:AbstractHBaseToolThe "main function" of the tool- Specified by:
doWorkin classAbstractHBaseTool- Throws:
Exception
-
main
-