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.
You can use the RandomRowFilter to get the sample.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With