You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Liu Shaohui (JIRA)" <ji...@apache.org> on 2013/08/07 12:00:49 UTC
[jira] [Commented] (HBASE-8332) Add truncate as HMaster method
[ https://issues.apache.org/jira/browse/HBASE-8332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731835#comment-13731835 ]
Liu Shaohui commented on HBASE-8332:
------------------------------------
[~mbertozzi]
Some tips about the patch
a, I think a sync truncate method in HbaseAdmin is better than a async one.
b, TruncateTableHandler can reuse the CreateTableHandler code in recreateTable
c. Truncate shoud keep acl info too.
> Add truncate as HMaster method
> ------------------------------
>
> Key: HBASE-8332
> URL: https://issues.apache.org/jira/browse/HBASE-8332
> Project: HBase
> Issue Type: Improvement
> Components: master
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Priority: Minor
> Attachments: HBASE-8332.draft.patch
>
>
> Currently truncate and truncate_preserve are only shell functions, and implemented as deleteTable() + createTable().
> Using ACLs the user running truncate, must have rights to create a table and only "global granted" users can create tables.
> Add truncate() and truncatePreserve() to HBaseAdmin/HMaster with its own ACL check.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira