Reputation: 199
If I have the following row keys in HBase:
abc_DFS_20
sjd_eir_21
skd_err_22
...
..
sdf_rie_100
For now I want to use HBase Shell to query all the rowkeys which *_ * _number from 30 - 40, so something like
scan 'table', {STARTROW => '*_*_30', ENDROW => '*_*_40'}
Acutally the above query doesn't work. Could anyone give me an idea to achieve this ?
Upvotes: 2
Views: 1351
Reputation: 3067
Talked about it multiple times here, wildcards are not supported, only prefixes can be used as start & stop rows. You have a few options, each one with its own pros & cons (sorted by less complexity/overhead):
You can find more info here.
Upvotes: 2