HBASE-8507 HLog tool documentation should be updated to use FSHLog for trunk and 0.95
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1483123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
86aad7e82c
commit
e520b99455
|
@ -79,20 +79,20 @@ Valid program names are:
|
|||
<title>WAL Tools</title>
|
||||
|
||||
<section xml:id="hlog_tool">
|
||||
<title><classname>HLog</classname> tool</title>
|
||||
<title><classname>FSHLog</classname> tool</title>
|
||||
|
||||
<para>The main method on <classname>HLog</classname> offers manual
|
||||
<para>The main method on <classname>FSHLog</classname> offers manual
|
||||
split and dump facilities. Pass it WALs or the product of a split, the
|
||||
content of the <filename>recovered.edits</filename>. directory.</para>
|
||||
|
||||
<para>You can get a textual dump of a WAL file content by doing the
|
||||
following:<programlisting> <code>$ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --dump hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code> </programlisting>The
|
||||
following:<programlisting> <code>$ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.FSHLog --dump hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code> </programlisting>The
|
||||
return code will be non-zero if issues with the file so you can test
|
||||
wholesomeness of file by redirecting <varname>STDOUT</varname> to
|
||||
<code>/dev/null</code> and testing the program return.</para>
|
||||
|
||||
<para>Similarly you can force a split of a log file directory by
|
||||
doing:<programlisting> $ ./<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
|
||||
doing:<programlisting> $ ./<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.FSHLog --split hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
|
||||
|
||||
<section xml:id="hlog_tool.prettyprint">
|
||||
<title><classname>HLogPrettyPrinter</classname></title>
|
||||
|
|
Loading…
Reference in New Issue