-Re: HBase Schema for IPTC News ML G2
James Taylor 2014-03-03, 21:32
Take a look at Apache Phoenix: http://phoenix.incubator.apache.org/
It allows you to use SQL to query over your HBase data and supports
composite primary keys, so you could create a schema like this:
create table news_message(guid varchar not null, version bigint not null,
constraint pk primary key (guid, version desc));
The rows will then sort by guid plus version descending. Then you can issue
sql queries directly against your hbase data without writing map/reduce.
Note that we don't yet support all the sql constructs that postgres does.
On Sun, Mar 2, 2014 at 11:23 PM, Jigar Shah <[EMAIL PROTECTED]> wrote: