[
https://issues.apache.org/jira/browse/HBASE-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015525#comment-13015525
]
Subbu M Iyer commented on HBASE-3488:
-------------------------------------
1. To run the cellcounter with default row/cf/qualifier separator ':' for table
'planet'
java -cp
./conf:./hbase-0.91.0-SNAPSHOT.jar:./lib/hadoop-0.20.1-core.jar:./lib/commons-logging-1.1.1.jar:./lib/commons-cli-1.2.jar:./lib/zookeeper-3.3.2.jar:./lib/log4j-1.2.16.jar:./lib/commons-httpclient-3.1.jar
org.apache.hadoop.hbase.mapreduce.CellCounter planet
/work/HBaseExport/cellcounter30
2. To run the cellcounter with row/cf/qualifier separator '%' for table 'planet'
java -cp
./conf:./hbase-0.91.0-SNAPSHOT.jar:./lib/hadoop-0.20.1-core.jar:./lib/commons-logging-1.1.1.jar:./lib/commons-cli-1.2.jar:./lib/zookeeper-3.3.2.jar:./lib/log4j-1.2.16.jar:./lib/commons-httpclient-3.1.jar
org.apache.hadoop.hbase.mapreduce.CellCounter planet
/work/HBaseExport/cellcounter31 %
3. To run the cellcounter with default row/cf/qualifier separator '%' for table
'planet' with a prefix filter row_55
java -cp
./conf:./hbase-0.91.0-SNAPSHOT.jar:./lib/hadoop-0.20.1-core.jar:./lib/commons-logging-1.1.1.jar:./lib/commons-cli-1.2.jar:./lib/zookeeper-3.3.2.jar:./lib/log4j-1.2.16.jar:./lib/commons-httpclient-3.1.jar
org.apache.hadoop.hbase.mapreduce.CellCounter planet
/work/HBaseExport/cellcounter31 % row_55
4. To run the cellcounter with row/cf/qualifier separator '%' for table
'planet' with a regex filter ^11
java -cp
./conf:./hbase-0.91.0-SNAPSHOT.jar:./lib/hadoop-0.20.1-core.jar:./lib/commons-logging-1.1.1.jar:./lib/commons-cli-1.2.jar:./lib/zookeeper-3.3.2.jar:./lib/log4j-1.2.16.jar:./lib/commons-httpclient-3.1.jar
org.apache.hadoop.hbase.mapreduce.CellCounter planet
/work/HBaseExport/cellcounter31 % ^11
> Allow RowCounter to retrieve multiple versions of rows
> ------------------------------------------------------
>
> Key: HBASE-3488
> URL: https://issues.apache.org/jira/browse/HBASE-3488
> Project: HBase
> Issue Type: Bug
> Components: util
> Affects Versions: 0.90.0
> Reporter: Ted Yu
> Fix For: 0.92.0
>
> Attachments:
> 3488-Allow_RowCounter_to_retrieve_multiple_versions_of_rows-version2.patch,
> 3488-Allow_RowCounter_to_retrieve_multiple_versions_of_rows.patch
>
>
> Currently RowCounter only retrieves latest version for each row.
> Some applications would store multiple versions for the same row.
> RowCounter should accept a new parameter for the number of versions to return.
> Scan object would be configured with version parameter (for scan.maxVersions).
> Then the following API should be called:
> {code}
> public KeyValue[] raw() {
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira