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

Switch to Plain View
HBase >> mail # user >> Empty a table


+
Jean-Marc Spaggiari 2013-02-05, 16:13
+
Ted Yu 2013-02-05, 17:28
Copy link to this message
-
RE: Empty a table
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
>
+
Kevin Odell 2013-02-05, 17:38
+
Ted Yu 2013-02-05, 17:40
+
Jean-Marc Spaggiari 2013-02-05, 17:43
+
Andrew Purtell 2013-02-05, 18:36
+
Michael Segel 2013-02-07, 19:16
+
ramkrishna vasudevan 2013-02-08, 04:18
+
Jean-Marc Spaggiari 2013-02-07, 19:10