hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tianying Chang <tich...@ebaysf.com>
Subject RE: Empty a table
Date Tue, 05 Feb 2013 17:37:09 GMT
You can achieve this goal by deleting all the HFiles of this table. Remember just Hfile, but
not the region folders. We did it before with a simple script  that loop through the Hfiles,
very easy. 

Thanks
Tian-Ying 

-----Original Message-----
From: Ted Yu [mailto:yuzhihong@gmail.com] 
Sent: Tuesday, February 05, 2013 9:28 AM
To: user@hbase.apache.org
Subject: Re: Empty a table

To my knowledge there is no such tool.

You can file a JIRA in case someone has bandwidth to work on such tool.

Thanks

On Tue, Feb 5, 2013 at 8:13 AM, Jean-Marc Spaggiari <jean-marc@spaggiari.org
> wrote:

> Hi,
>
> Is there an easy way to empty a table but keep the regions? Truncate 
> will remove everything even the splitting. But I want to keep the 
> regions the way they are. I just want to clean them. Is there a simple 
> way to do that with the shell or something like that?
>
> Thanks,
>
> JM
>

Mime
View raw message