hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Rodionov <vladrodio...@gmail.com>
Subject Re: Setting TTL at the row level
Date Wed, 21 Jun 2017 18:35:36 GMT
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

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