How to store and query range data in HBase? How to store and query range data in HBase? hadoop hadoop

How to store and query range data in HBase?


My understanding : you want to pass Ip (either from or to) and you want to lookup country or region specific to that.

Yes. You an store data in Hbase and query with filters if you want to use Hbase as only data store.

In my experience, Solr search is faster than Hbase and can use NRT or Batch indexer(in case you are using CDH) or some other tool to index Hbase data.

Further more, Whitefret raised the concern(which sounds logical to me). along with ipfrom ,ipto and country, if you storing anything else in solr then hbase can work for you . otherwise there is no need for intermediate storage like Hbase and you need to revisit your solr configuration.