hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liushaohui <liushao...@xiaomi.com>
Subject how to clean all data in hbase table without truncate
Date Mon, 05 Aug 2013 11:28:35 GMT
hi all:

     In our shared secure hbase cluster,  users often wants to clean all 
tested data in their tables.  Currently, hbase supports the

truncate method , but its impl is based on disable table-> delete table 
-> create table.

There are two drawbacks in this impl.

1, Region split info. Truncate creates a new table with just a region. 
It loses the region split info, which is not suitable for pre-split tables.

2, Table ACLs.  In the deletion of table, the tables' acls will be 
deleted too. So every truncate need to be operated by hbase admin.


Is there any other effective method to clean all data of a table?

What about implement a real truncate method in hmaster which keeps 
region split info and table acls?

Thanks


- liushaohui





Mime
View raw message