Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Empty a table


Copy link to this message
-
RE: Empty a table
Tianying Chang 2013-02-05, 17:37
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:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2013 9:28 AM
To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]
> 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
>