[
https://issues.apache.org/jira/browse/HBASE-9086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723895#comment-13723895
]
Cheney Sun commented on HBASE-9086:
-----------------------------------
Yes, this is exactly what I want. Thanks Jean-Marc. I changed the
$HBASE_HOME/lib/ruby/hbase/table.rb in my client machine, change the line 161
to scan.setFilter(org.apache.hadoop.hbase.filter.KeyOnlyFilter.new). A huge
improvement was obtained - previously, count 100w lines took more 100 seconds,
now count 400w line only need 75 seconds.
I would like to work on the ruby scripts to provide the patch tomorrow.
BTW, the count command in the shell didn't expose all the arguments in
RowCounter, such as the --range option.
-Cheney
> Add some options to improve count performance
> ---------------------------------------------
>
> Key: HBASE-9086
> URL: https://issues.apache.org/jira/browse/HBASE-9086
> Project: HBase
> Issue Type: Wish
> Components: shell
> Affects Versions: 0.94.2
> Reporter: Cheney Sun
>
> The current count command in HBase shell is quite slow if the row size is
> very big (100+kB each). It would be helpful to provide some option to specify
> the column to count, which could give user a chance to reduce the data volume
> to scan.
> IMHO, only count the row key would be the ideal solution. Not sure how
> difficult to implement it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira