You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Lars George <la...@gmail.com> on 2017/07/21 11:33:14 UTC

user_permission output

Hi,

I am running the shell's "user_permission" command without any
parameter, and with a ".*" wildcard epxression and get two different
results back:

hbase(main):003:0> user_permission
User
Namespace,Table,Family,Qualifier:Permission
 hbasebook                                  hbase,hbase:acl,,:
[Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
 hbase                                      hbase,hbase:acl,,:
[Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
2 row(s) in 0.5110 seconds

hbase(main):005:0> user_permission ".*"
User
Namespace,Table,Family,Qualifier:Permission
 hbasebook                                  hbase,hbase:acl,,:
[Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
 hbasebook                                  default,testtable,,:
[Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
2 row(s) in 0.4880 seconds

See how the second row differs? What is the proper behaviour of each
command? Should it not give the same output?

Cheers,
Lars

Re: user_permission output

Posted by Lars George <la...@gmail.com>.
OK, found that no parameter is treated as asking for the ACLs table. Maybe the shell command should say so? Just a minor nit though, there are bigger tofu blocks to fry. 

Sent from my iPhone

> On 21. Jul 2017, at 13:33, Lars George <la...@gmail.com> wrote:
> 
> Hi,
> 
> I am running the shell's "user_permission" command without any
> parameter, and with a ".*" wildcard epxression and get two different
> results back:
> 
> hbase(main):003:0> user_permission
> User
> Namespace,Table,Family,Qualifier:Permission
> hbasebook                                  hbase,hbase:acl,,:
> [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
> hbase                                      hbase,hbase:acl,,:
> [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
> 2 row(s) in 0.5110 seconds
> 
> hbase(main):005:0> user_permission ".*"
> User
> Namespace,Table,Family,Qualifier:Permission
> hbasebook                                  hbase,hbase:acl,,:
> [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
> hbasebook                                  default,testtable,,:
> [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN]
> 2 row(s) in 0.4880 seconds
> 
> See how the second row differs? What is the proper behaviour of each
> command? Should it not give the same output?
> 
> Cheers,
> Lars