hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11769) Truncate table shouldn't revoke user privileges
Date Mon, 18 Aug 2014 11:31:19 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100546#comment-14100546
] 

Jean-Marc Spaggiari commented on HBASE-11769:
---------------------------------------------

Make sense to me.

There is also a truncate which preserves the splits. You might want to modify this one too.
(truncate_preserve)

> Truncate table shouldn't revoke user privileges
> -----------------------------------------------
>
>                 Key: HBASE-11769
>                 URL: https://issues.apache.org/jira/browse/HBASE-11769
>             Project: HBase
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.94.15
>            Reporter: hongyu bi
>
> hbase(main):002:0> create 'a','cf'
> 0 row(s) in 0.2500 seconds
> => Hbase::Table - a
> hbase(main):003:0> grant 'usera','R','a'
> 0 row(s) in 0.2080 seconds
> hbase(main):007:0> user_permission 'a'
> User                                                           Table,Family,Qualifier:Permission
                                                                                         
                                                           
>  usera                                                         a,,: [Permission: actions=READ]
                                                                                         
                                                             
> hbase(main):004:0> truncate 'a'
> Truncating 'a' table (it may take a while):
>  - Disabling table...
>  - Dropping table...
>  - Creating table...
> 0 row(s) in 1.5320 seconds
> hbase(main):005:0> user_permission 'a'
> User                                                           Table,Family,Qualifier:Permission
                                                                                         
                                                           



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message