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:yuzhih...@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-m...@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
>

Reply via email to