Scan table with multiple rowkey filter in hbase

Aashu picture Aashu · Aug 9, 2014 · Viewed 7.9k times · Source

I have tried with single row-key ,its working fine but i am unable to fetch multiple row-key scan.

scan 'LPV',{FILTER =>"(PrefixFilter('174','194')"}

getting error,find Filter to support scan multiple row key ranges but didnt find is it possible or not ? I want to fetch multiple records based on multiple row-keys. Any help,Thanks.

Answer

Arnon Rotem-Gal-Oz picture Arnon Rotem-Gal-Oz · Aug 10, 2014

You just need to OR two PrefixFilters as in

scan 'LPV',{FILTER =>"(PrefixFilter('174') OR PrefixFilter('194')"}