@InterfaceAudience.LimitedPrivate(value="Tools") @InterfaceStability.Evolving public class ProcedureWALPrettyPrinter extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
| Modifier and Type | Field and Description |
|---|---|
private PrintStream |
out |
| Constructor and Description |
|---|
ProcedureWALPrettyPrinter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
private void |
printEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) |
private void |
printHeader(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader header) |
private void |
printProcedure(Procedure<?> proc) |
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. |
private final PrintStream out
public ProcedureWALPrettyPrinter()
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
IOExceptionprivate void printEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry entry) throws IOException
IOExceptionprivate void printProcedure(Procedure<?> proc)
private void printHeader(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader header)
public int run(String[] args) throws IOException
stdout.run in interface org.apache.hadoop.util.Toolargs - Command line argumentsIOException - Thrown upon file system errors etc.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.