From 5b31d2cd725ad2a8ece777e1a58df3bdc5c638a3 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 9 Sep 2010 17:15:11 +0000 Subject: [PATCH] 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 --- src/docbkx/book.xml | 73 +++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/src/docbkx/book.xml b/src/docbkx/book.xml index afecfbb6e08..3bb86f402d1 100644 --- a/src/docbkx/book.xml +++ b/src/docbkx/book.xml @@ -32,36 +32,28 @@ First... + Filesystem Format - How HBase persists to the target Filesystem + + How HBase is persisted on the Filesystem
HFile -
- HFile Tool - To view a textualized version of hfile content, you can do use - the - org.apache.hadoop.hbase.io.hfile.HFile - - tool. Type the following to see usage: - - $ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile - - For example, to view the content of the file - hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 - , type the following: - - $ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f -hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 - - If you leave off the option -v to see just a summary on the hfile. - See usage for other things to do with the HFile tool. - +
+ HFile Tool -
- + To view a textualized version of hfile content, you can do use + the org.apache.hadoop.hbase.io.hfile.HFile + tool. Type the following to see usage:$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile For + example, to view the content of the file + hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475, + type the following: $ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 If + you leave off the option -v to see just a summary on the hfile. See + usage for other things to do with the HFile + tool. +
@@ -693,22 +685,25 @@ hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 +
- WAL Tools -
- <classname>HLog</classname> main - The main method on HLog offers manual split and dump facilities. - - - You can get a textual dump of a WAL file content by doing the following: - 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 - The return code will be non-zero if issues with the file so you can test wholesomeness of file by - redirecting STDOUT to /dev/null and testing the program return. - - Similarily you can force a split of a log file directory by doing - bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/ - -
-
+ WAL Tools + +
+ <classname>HLog</classname> main + + The main method on HLog offers manual + split and dump facilities. + + You can get a textual dump of a WAL file content by doing the + following: $ ./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 The + return code will be non-zero if issues with the file so you can test + wholesomeness of file by redirecting STDOUT to + /dev/null and testing the program return. + + Similarily you can force a split of a log file directory by + doing: $ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/ +
+