Should work On Wed, Jun 21, 2017 at 11:31 AM, <jof...@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 > > >