You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "huzheng (JIRA)" <ji...@apache.org> on 2017/01/16 04:59:26 UTC

[jira] [Updated] (HBASE-17472) Correct the semantic of permission grant

     [ https://issues.apache.org/jira/browse/HBASE-17472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huzheng updated HBASE-17472:
----------------------------
    Description: 
Currently, HBase grant operation has following semantic:

{code}
hbase(main):019:0> grant 'hbase_tst', 'RW', 'ycsb'
0 row(s) in 0.0960 seconds

hbase(main):020:0> user_permission 'ycsb'
User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                                                                                                                               
 hbase_tst                                                   default,ycsb,,: [Permission:actions=READ,WRITE]                                                                                                                                                                                                           
4 row(s) in 0.0550 seconds

hbase(main):021:0> grant 'hbase_tst', 'CA', 'ycsb'
0 row(s) in 0.0820 seconds

hbase(main):022:0> user_permission 'ycsb'
User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                       
 hbase_tst                                                   default,ycsb,,: [Permission: actions=CREATE,ADMIN]                                                                                                                                
1 row(s) in 0.0490 seconds

{code}  

Later permission will replace previous granted permissions, It seems confuse most of HBase administrator.

It's seems more reasonable that HBase merge multiple granted permission.


  was:
Currently, HBase grant operation has following semantic:

{code}
hbase(main):019:0> grant 'hbase_tst', 'RW', 'ycsb'
0 row(s) in 0.0960 seconds

hbase(main):020:0> user_permission 'ycsb'
User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                                                                                                                               
 hbase_tst                                                   default,ycsb,,: [Permission:actions=READ,WRITE]                                                                                                                                                                                                           
4 row(s) in 0.0550 seconds

hbase(main):021:0> grant 'hbase_tst', 'CA', 'ycsb'
0 row(s) in 0.0820 seconds

hbase(main):022:0> user_permission 'ycsb'
User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                       
 hbase_tst                                                   default,ycsb,,: [Permission: actions=CREATE,ADMIN]                                                                                                                                
1 row(s) in 0.0490 seconds

{code}  

Later permission will replace previous granted permissions seems confuse most of HBase administrator.

It's seems more reasonable that HBase merge multiple granted permission.



> Correct the semantic of  permission grant
> -----------------------------------------
>
>                 Key: HBASE-17472
>                 URL: https://issues.apache.org/jira/browse/HBASE-17472
>             Project: HBase
>          Issue Type: Improvement
>          Components: Admin
>            Reporter: huzheng
>            Assignee: huzheng
>
> Currently, HBase grant operation has following semantic:
> {code}
> hbase(main):019:0> grant 'hbase_tst', 'RW', 'ycsb'
> 0 row(s) in 0.0960 seconds
> hbase(main):020:0> user_permission 'ycsb'
> User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                                                                                                                               
>  hbase_tst                                                   default,ycsb,,: [Permission:actions=READ,WRITE]                                                                                                                                                                                                           
> 4 row(s) in 0.0550 seconds
> hbase(main):021:0> grant 'hbase_tst', 'CA', 'ycsb'
> 0 row(s) in 0.0820 seconds
> hbase(main):022:0> user_permission 'ycsb'
> User                                                         Namespace,Table,Family,Qualifier:Permission                                                                                                                                       
>  hbase_tst                                                   default,ycsb,,: [Permission: actions=CREATE,ADMIN]                                                                                                                                
> 1 row(s) in 0.0490 seconds
> {code}  
> Later permission will replace previous granted permissions, It seems confuse most of HBase administrator.
> It's seems more reasonable that HBase merge multiple granted permission.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)