Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sampling HBase table keyspace

Tags:

hadoop

hbase

I'd like to build random samples of a HBase table's rowkey space.

Say, I'd like to have roughly 1% of the keys from HBase that are randomly distributed across the table. What's the best way of doing this?

I suppose I could write a MapReduce job that processed all the data and pulled 1/100 of the keys... or perhaps use a coprocessor.

like image 539
Donald Miner Avatar asked Sep 25 '26 23:09

Donald Miner


1 Answers

You can use the RandomRowFilter to get the sample.

like image 120
Alexander Kuznetsov Avatar answered Sep 28 '26 20:09

Alexander Kuznetsov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!