hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject [02/50] [abbrv] hbase git commit: HBASE-13177 Document compact and major_compact HBase shell commands and Admin APIs
Date Wed, 22 Jul 2015 19:52:20 GMT
HBASE-13177 Document compact and major_compact HBase shell commands and Admin APIs


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8c1edeb2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8c1edeb2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8c1edeb2

Branch: refs/heads/master
Commit: 8c1edeb2b8d8da6058e78df2ec907ec4df986012
Parents: 33a6a81
Author: Misty Stanley-Jones <mstanleyjones@cloudera.com>
Authored: Mon Mar 9 10:00:21 2015 +1000
Committer: Misty Stanley-Jones <mstanleyjones@cloudera.com>
Committed: Mon Mar 9 10:00:55 2015 +1000

----------------------------------------------------------------------
 src/main/asciidoc/_chapters/hbase_mob.adoc | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8c1edeb2/src/main/asciidoc/_chapters/hbase_mob.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/hbase_mob.adoc b/src/main/asciidoc/_chapters/hbase_mob.adoc
index 0882de8..52f20f6 100644
--- a/src/main/asciidoc/_chapters/hbase_mob.adoc
+++ b/src/main/asciidoc/_chapters/hbase_mob.adoc
@@ -120,6 +120,21 @@ Because there can be a large number of MOB files at any time, as compared
to the
 
 === MOB Optimization Tasks
 
+==== Manually Compacting MOB Files
+
+To manually compact MOB files, rather than waiting for the <<mob.cache.configure,configuration>>
to trigger compaction, use the `compact_mob` or `major_compact_mob` HBase shell commands.
These commands require the first argument to be the table name, and take an optional column
family as the second argument. If the column family is omitted, all MOB-enabled column families
are compacted.
+
+----
+hbase> compact_mob 't1', 'c1'
+hbase> compact_mob 't1'
+hbase> major_compact_mob 't1', 'c1'
+hbase> major_compact_mob 't1'
+----
+
+These commands are also available via `Admin.compactMob` and `Admin.majorCompactMob` methods.
+
+==== MOB Sweeper
+
 HBase MOB currently relies on a MapReduce job called the Sweeper tool for optimization. The
Sweeper tool oalesces small MOB files or MOB files with many deletions or updates. A native
MOB compaction tool is still in testing. To configure the Sweeper tool, set the following
options:
 
 [source,xml]


Mime
View raw message