Using HBase for analytics Using HBase for analytics hadoop hadoop

Using HBase for analytics


Lars George's "HBASE: the definitive guide" explains a design very similar to what you want to achieve in the introduction chapter


This can be done as follows,

Have the unique row id in Hbase as follows,

rowid = date + country + product ---> append these into a single entity and have it as key.

Then have the counters as columns. So when you get an event like,

if(event == liked){increment the liked column of the hbase by 1 for the corresponding key combination.}

and so on for other cases.

Hope this helps!!