Y0gesh Gupta
Y0gesh Gupta

Reputation: 2204

Row count in Hbase where a column has certain value

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

Answers (1)

WestCoastProjects
WestCoastProjects

Reputation: 63022

Take a look at Hbase coprocessor AggregationClient . AggregationClient docs

Example usage: row-count-hbase-aggregation-example

Upvotes: 2

Related Questions