@InterfaceAudience.LimitedPrivate(value="Tools") @InterfaceStability.Evolving public class ProcedureWALPrettyPrinter extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Constructor and Description |
---|
ProcedureWALPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
processFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path p)
Reads a log file and outputs its contents.
|
void |
processProcedureWALFile(ProcedureWALFile log) |
int |
run(String[] args)
Pass one or more log file names and formatting options and it will dump out
a text version of the contents on
stdout . |
public void processFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path p) throws IOException
conf
- HBase configuration relevant to this log filep
- path of the log file to be readIOException
- IOExceptionpublic void processProcedureWALFile(ProcedureWALFile log) throws IOException
IOException
public int run(String[] args) throws IOException
stdout
.run
in interface org.apache.hadoop.util.Tool
args
- Command line argumentsIOException
- Thrown upon file system errors etc.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.