Formatting fixup -- use programlisting rather than code delimiting commands

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@995500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-09 17:15:11 +00:00
parent 72f2c22bfc
commit 5b31d2cd72
1 changed files with 34 additions and 39 deletions

View File

@ -32,36 +32,28 @@
<para>First...</para> <para>First...</para>
</section> </section>
</chapter> </chapter>
<chapter xml:id="filesystem"> <chapter xml:id="filesystem">
<title>Filesystem Format</title> <title>Filesystem Format</title>
<subtitle>How HBase persists to the target Filesystem</subtitle>
<subtitle>How HBase is persisted on the Filesystem</subtitle>
<section> <section>
<title>HFile</title> <title>HFile</title>
<section>
<title>HFile Tool</title>
<para>To view a textualized version of hfile content, you can do use
the
<classname>org.apache.hadoop.hbase.io.hfile.HFile
</classname>
tool. Type the following to see usage:
<code>
$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
</code>
For example, to view the content of the file
<filename>hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
</filename>, type the following:
<code>
$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f
hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
</code>
If you leave off the option -v to see just a summary on the hfile.
See usage for other things to do with the <classname>HFile</classname> tool.
</para>
<section>
<title>HFile Tool</title>
</section> <para>To view a textualized version of hfile content, you can do use
the <classname>org.apache.hadoop.hbase.io.hfile.HFile
</classname>tool. Type the following to see usage:<programlisting><code>$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile </code> </programlisting>For
example, to view the content of the file
<filename>hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475</filename>,
type the following:<programlisting> <code>$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 </code> </programlisting>If
you leave off the option -v to see just a summary on the hfile. See
usage for other things to do with the <classname>HFile</classname>
tool.</para>
</section>
</section> </section>
</chapter> </chapter>
@ -693,22 +685,25 @@ hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
</footnote></para> </footnote></para>
</section> </section>
</section> </section>
<section> <section>
<title>WAL Tools</title> <title>WAL Tools</title>
<section>
<title><classname>HLog</classname> main</title> <section>
<para>The main method on <classname>HLog</classname> offers manual split and dump facilities. <title><classname>HLog</classname> main</title>
</para>
<para> <para>The main method on <classname>HLog</classname> offers manual
You can get a textual dump of a WAL file content by doing the following: split and dump facilities.</para>
<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --dump hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code>
The return code will be non-zero if issues with the file so you can test wholesomeness of file by <para>You can get a textual dump of a WAL file content by doing the
redirecting <varname>STDOUT</varname> to <code>/dev/null</code> and testing the program return. following:<programlisting> <code>$ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --dump hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code> </programlisting>The
</para> return code will be non-zero if issues with the file so you can test
<para>Similarily you can force a split of a log file directory by doing wholesomeness of file by redirecting <varname>STDOUT</varname> to
<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/</code> <code>/dev/null</code> and testing the program return.</para>
</para>
</section> <para>Similarily you can force a split of a log file directory by
</section> doing:<programlisting> $ ./<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
</section>
</section>
</chapter> </chapter>
</book> </book>