Reputation: 2204
I am using hbase to store my data in hdfs, I have a column family with user_details in my table where I am storing user values like-
userdetails-> userid ->"ui011"
userdetails-> userName->"John"
userdetails-> emailid->"[email protected]"
Now is it possible to count the rows which have particular value in username and email id, both through java and hbase shell. I am kind of new to hbase and any help will be appreciated.
Upvotes: 0
Views: 4449
Reputation: 63022
Take a look at Hbase coprocessor AggregationClient . AggregationClient docs
Example usage: row-count-hbase-aggregation-example
Upvotes: 2