Repository: hbase Updated Branches: refs/heads/HBASE-14850 b434d0eaf -> e0025533c (forced update)
HBASE-15612: Minor improvements to CellCounter and RowCounter documentation Signed-off-by: stack <st...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a6e29676 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a6e29676 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a6e29676 Branch: refs/heads/HBASE-14850 Commit: a6e29676db1d2aa8ff40624573bfd93bf356d2b4 Parents: 2eced6f Author: Esteban Gutierrez <este...@apache.org> Authored: Thu Apr 7 10:04:07 2016 -0700 Committer: stack <st...@apache.org> Committed: Mon May 9 14:12:43 2016 -0700 ---------------------------------------------------------------------- .../org/apache/hadoop/hbase/mapreduce/CellCounter.java | 5 +++-- src/main/asciidoc/_chapters/ops_mgt.adoc | 10 ++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/a6e29676/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CellCounter.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CellCounter.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CellCounter.java index 73f9b93..e2af762 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CellCounter.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CellCounter.java @@ -64,10 +64,11 @@ import com.google.common.base.Preconditions; * 6. Total number of versions of each qualifier. * </pre> * - * The cellcounter takes two optional parameters one to use a user + * The cellcounter can take optional parameters to use a user * supplied row/family/qualifier string to use in the report and * second a regex based or prefix based row filter to restrict the - * count operation to a limited subset of rows from the table. + * count operation to a limited subset of rows from the table or a + * start time and/or end time to limit the count to a time range. */ @InterfaceAudience.Public @InterfaceStability.Stable http://git-wip-us.apache.org/repos/asf/hbase/blob/a6e29676/src/main/asciidoc/_chapters/ops_mgt.adoc ---------------------------------------------------------------------- diff --git a/src/main/asciidoc/_chapters/ops_mgt.adoc b/src/main/asciidoc/_chapters/ops_mgt.adoc index 4c9c7c5..583a872 100644 --- a/src/main/asciidoc/_chapters/ops_mgt.adoc +++ b/src/main/asciidoc/_chapters/ops_mgt.adoc @@ -304,12 +304,15 @@ The following utilities are available: `RowCounter`:: Count rows in an HBase table. +`CellCounter`:: + Count cells in an HBase table. + `replication.VerifyReplication`:: Compare the data from tables in two different clusters. WARNING: It doesn't work for incrementColumnValues'd cells since the timestamp is changed. Note that this command is in a different package than the others. -Each command except `RowCounter` accepts a single `--help` argument to print usage instructions. +Each command except `RowCounter` and `CellCounter` accept a single `--help` argument to print usage instructions. [[hbck]] === HBase `hbck` @@ -619,7 +622,8 @@ To NOT run WALPlayer as a mapreduce job on your cluster, force it to run all in link:http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/RowCounter.html[RowCounter] is a mapreduce job to count all the rows of a table. This is a good utility to use as a sanity check to ensure that HBase can read all the blocks of a table if there are any concerns of metadata inconsistency. -It will run the mapreduce all in a single process but it will run faster if you have a MapReduce cluster in place for it to exploit. +It will run the mapreduce all in a single process but it will run faster if you have a MapReduce cluster in place for it to exploit. It is also possible to limit +the time range of data to be scanned by using the `--starttime=[starttime]` and `--endtime=[endtime]` flags. ---- $ bin/hbase org.apache.hadoop.hbase.mapreduce.RowCounter <tablename> [<column1> <column2>...] @@ -642,6 +646,8 @@ The statistics gathered by RowCounter are more fine-grained and include: The program allows you to limit the scope of the run. Provide a row regex or prefix to limit the rows to analyze. +Specify a time range to scan the table by using the `--starttime=[starttime]` and `--endtime=[endtime]` flags. + Use `hbase.mapreduce.scan.column.family` to specify scanning a single column family. ----