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:
parent
72f2c22bfc
commit
5b31d2cd72
|
@ -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>
|
<section>
|
||||||
<title>HFile Tool</title>
|
<title>HFile Tool</title>
|
||||||
|
|
||||||
<para>To view a textualized version of hfile content, you can do use
|
<para>To view a textualized version of hfile content, you can do use
|
||||||
the
|
the <classname>org.apache.hadoop.hbase.io.hfile.HFile
|
||||||
<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
|
||||||
</classname>
|
example, to view the content of the file
|
||||||
tool. Type the following to see usage:
|
<filename>hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475</filename>,
|
||||||
<code>
|
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
|
||||||
$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
|
you leave off the option -v to see just a summary on the hfile. See
|
||||||
</code>
|
usage for other things to do with the <classname>HFile</classname>
|
||||||
For example, to view the content of the file
|
tool.</para>
|
||||||
<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>
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
@ -693,21 +685,24 @@ 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>
|
<section>
|
||||||
<title><classname>HLog</classname> main</title>
|
<title><classname>HLog</classname> main</title>
|
||||||
<para>The main method on <classname>HLog</classname> offers manual split and dump facilities.
|
|
||||||
</para>
|
<para>The main method on <classname>HLog</classname> offers manual
|
||||||
<para>
|
split and dump facilities.</para>
|
||||||
You can get a textual dump of a WAL file content by doing the following:
|
|
||||||
<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>
|
<para>You can get a textual dump of a WAL file content by doing the
|
||||||
The return code will be non-zero if issues with the file so you can test wholesomeness of file by
|
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
|
||||||
redirecting <varname>STDOUT</varname> to <code>/dev/null</code> and testing the program return.
|
return code will be non-zero if issues with the file so you can test
|
||||||
</para>
|
wholesomeness of file by redirecting <varname>STDOUT</varname> to
|
||||||
<para>Similarily you can force a split of a log file directory by doing
|
<code>/dev/null</code> and testing the program return.</para>
|
||||||
<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/</code>
|
|
||||||
</para>
|
<para>Similarily 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:9000/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
Loading…
Reference in New Issue