Re: removing ttl

2013-06-24 Thread Jean-Marc Spaggiari
Have you tried something like

alter 't1', METHOD = 'table_att_unset', NAME = 'TTL'

?

And I don't think you will need to rewrite anything.

JM

2013/6/24 Kireet kir...@feedly.com:
 I need to remove the TTL setting from an existing HBase table and remove the
 TTL from all existing rows. I think this is the proper command for removing
 the TTL setting:

 alter 't', {NAME = 'cf', TTL = '2147483647'}

 After doing this, do I need to rewrite all the existing data to remove the
 TTL for each cell, perhaps using the IdentityMapper M/R job?

 Thanks
 Kireet



Re: removing ttl

2013-06-24 Thread Jean-Daniel Cryans
TTL is enforced when compactions are running so there's no need to
rewrite the data. The alter is sufficient.

J-D

On Mon, Jun 24, 2013 at 4:15 PM, Kireet kir...@feedly.com wrote:
 I need to remove the TTL setting from an existing HBase table and remove the
 TTL from all existing rows. I think this is the proper command for removing
 the TTL setting:

 alter 't', {NAME = 'cf', TTL = '2147483647'}

 After doing this, do I need to rewrite all the existing data to remove the
 TTL for each cell, perhaps using the IdentityMapper M/R job?

 Thanks
 Kireet