hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: Setting TTL at the row level
Date Thu, 22 Jun 2017 02:35:58 GMT
Why not using the cell level ttl?

Le 2017-06-21 2:35 PM, "Vladimir Rodionov" <vladrodionov@gmail.com> a
écrit :

> Should work
>
> On Wed, Jun 21, 2017 at 11:31 AM, <jofo90@gmail.com> wrote:
>
> > Hi all,
> >
> > I know it is possible to set TTL in HBase at the column family level -
> > which makes HBase delete rows in the column family when they reach a
> > certain age.
> >
> > Rather than expire a row after it's reached a certain age, I would like
> to
> > expire each specific row at a specific time in the future (I.e. set
> expiry
> > at the row level, rather than at the column family level). To achieve
> this,
> > I am planning on setting the column family TTL to something very short
> > (e.g. 1 minute) and then when I write my rows, I will set the row
> timestamp
> > to [current datetime + time until I want row to expire]. Since HBase uses
> > row timestamp for TTL, this should let me effectively set TTL on the row
> > level.
> >
> > Will this work? Is there any reason not to do this?
> >
> > Thanks!
> > Josh
> >
> >
> >
>

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