hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liu Shaohui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8332) Add truncate as HMaster method
Date Wed, 07 Aug 2013 10:00:49 GMT

    [ 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:

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

View raw message