hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11452) add getUserPermission feature in AccessControlClient as client API
Date Sat, 05 Jul 2014 05:39:34 GMT

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

Hudson commented on HBASE-11452:
--------------------------------

SUCCESS: Integrated in HBase-0.98-on-Hadoop-1.1 #357 (See [https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/357/])
HBASE-11452 add getUserPermission feature in AccessControlClient as client API (Demai Ni)
(stack: rev 576d734e5b712fb82688c412f3f1aecc2ddd39e6)
* hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlClient.java
* hbase-shell/src/main/ruby/shell/commands/user_permission.rb
* hbase-shell/src/main/ruby/hbase/security.rb
* hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java


> add getUserPermission feature in AccessControlClient as client API 
> -------------------------------------------------------------------
>
>                 Key: HBASE-11452
>                 URL: https://issues.apache.org/jira/browse/HBASE-11452
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client, security
>    Affects Versions: 0.98.0
>            Reporter: Demai Ni
>            Assignee: Demai Ni
>             Fix For: 0.99.0, 0.98.4, 2.0.0
>
>         Attachments: HBASE-11452-master-v0.patch, HBASE-11452-master-v1.patch, HBASE-11452-master-v1.patch,
HBASE-11452-master-v2.patch, HBASE-11452-master-v3.patch
>
>
> Currently user can 'grant','revoke' and show 'user_permission' through hbase shell. And
there are client api implemented in AccessControlClient.java for 'grant' and 'revoke'. This
jira is to add the 'user_permission' feature with a new method called 'getUserPermission'
> To keep interface consistant, this jira will also update user_permission.rb to use this
API directly. The test result is 
> {code}
> hbase(main):001:0> user_permission
> User                                                Table,Family,Qualifier:Permission
                                                                                         
                           
>  hbase                                              dn:t1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         
 
>  biadmin                                            etest,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         
 
>  hive                                               t1_dn,,: [Permission: actions=READ,WRITE]
                                                                                         
                   
>  biadmin                                            table1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         

>  biadmin                                            table2,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         

>  biadmin                                            test_dn,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         
> 6 row(s) in 1.6220 seconds
> hbase(main):002:0> user_permission 't.*'
> User                                                Table,Family,Qualifier:Permission
                                                                                         
                           
>  hive                                               t1_dn,,: [Permission: actions=READ,WRITE]
                                                                                         
                   
>  biadmin                                            table1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         

>  biadmin                                            table2,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         

>  biadmin                                            test_dn,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         
> 4 row(s) in 0.2130 seconds
> hbase(main):003:0> user_permission 'dn:t1'
> User                                                Table,Family,Qualifier:Permission
                                                                                         
                           
>  hbase                                              dn:t1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
                                                                                         
 
> 1 row(s) in 0.0790 seconds
> {code}



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

Mime
View raw message