hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yonghu <yongyong...@gmail.com>
Subject Re: Moving older data versions to archive
Date Thu, 03 Apr 2014 19:34:59 GMT
I think you can define coprocessors to do this. For example, for every put
command, you can keep the desired versions that you want, and later put the
older version into the other table or HDFS. Finally, either let Hbase
delete your stale data or let coprocessor do that for you. The problem of
this approach is the performance, as you see, every put command will
trigger coprocessor once.

On Thu, Apr 3, 2014 at 8:55 PM, Jean-Marc Spaggiari <jean-marc@spaggiari.org
> wrote:

> Hey, that's one of the reasons I have opened HBASE-10115 but never got a
> chance to work on it. Basically, setup a TTL on the column, and with the
> hook, move the cells somewhere else.
> With current state, the only thing I see is a MR job which will run daily
> and move the older versions. Like, anything where version > 3 (as an
> example) and then delete it (or expire it with TTL, etc.). If unfortunatly
> don't think there is a "nice" solution to do that today.
> JM
> 2014-04-03 11:33 GMT-04:00 Mike Peterson <mikepeterson@mail.ru>:
> >  I need data versioning but want to keep older data in a separate
> location
> > (to keep the current data file denser). What would be the best way to do
> > that?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message