Oops, forget my first question about range query (if keys are hashed, they can not be queried based on a range...) Still curious to have info on hash function in shell shell (2.) and advice on md5/jenkins/sha1 (3.)
Tks,
Eric

On 16/03/2011 09:52, Eric Charles wrote:
Hi,

To help avoid hotspots, I'm planning to use hashed keys in some tables.

1. I wonder if this strategy is adviced for range queries (from/to key) use case, because the rows will be randomly distributed in different regions. Will it cause some performance loose? 2. Is it possible to query from hbase shell with something like "get 't1', @hash('r1')", to let the shell compute the hash for you from the readable key. 3. There are MD5 and Jenkins classes in hbase.util package. What would you advice? what about SHA1?

Tks,
- Eric

PS: I searched the archive but didn't find the answers.


Reply via email to