You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Guangxu Cheng (Jira)" <ji...@apache.org> on 2020/04/14 02:50:00 UTC
[jira] [Resolved] (HBASE-24176) user_permission '.*' command
failed to show all table permissions
[ https://issues.apache.org/jira/browse/HBASE-24176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guangxu Cheng resolved HBASE-24176.
-----------------------------------
Fix Version/s: 2.2.5
2.4.0
2.3.0
3.0.0
Resolution: Fixed
> user_permission '.*' command failed to show all table permissions
> ------------------------------------------------------------------
>
> Key: HBASE-24176
> URL: https://issues.apache.org/jira/browse/HBASE-24176
> Project: HBase
> Issue Type: Bug
> Reporter: song XinCun
> Assignee: song XinCun
> Priority: Major
> Fix For: 3.0.0, 2.3.0, 2.4.0, 2.2.5
>
>
> When we grant somebody global permission, then we use '.*' as the argument of user_permission to show all table permissions, the following exception occurred:
> {code:java}
> hbase(main):001:0> grant 'user3', 'RW'
> Took 0.4144 seconds
> hbase(main):002:0> user_permission
> User Namespace,Table,Family,Qualifier:Permission
> user2 ,,,: [Permission: actions=READ,WRITE]
> user3 ,,,: [Permission: actions=READ,WRITE]
> hbaseadmin ,,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
> 3 row(s)
> Took 0.0445 seconds
> hbase(main):003:0> user_permission '.*'
> User Namespace,Table,Family,Qualifier:Permission
> user1 default,t1,,: [Permission: actions=READ,WRITE]
> hbaseadmin default,t1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN] ERROR: failed to coerce org.apache.hadoop.hbase.security.access.GlobalPermission to org.apache.hadoop.hbase.security.access.TablePermissionFor usage try 'help "user_permission"'Took 0.0940 seconds
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)