user_permission

Definition

Shows all permissions for the particular user.

IMPORTANT

Notice, that this command can be executed only by users with ADMIN rights. So, run it under superuser hbase or grant the appropriate rights to your user:

sudo -u hbase hbase shell
grant '<user_name>', 'A'

Usage

user_permission ['@<namespace_name>' | '@<namespace_regex>' | '<table_name>' | '<table_regex>']
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

namespace_regex

A regular expression for searching namespaces

table_regex

A regular expression for searching tables

NOTE
A namespace should be preceded with the @ character.

Examples

hbase(main):003:0> user_permission
User                     Namespace,Table,Family,Qualifier:Permission
 dasha                   hbase,hbase:acl,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN
                         ]
 hbase                   hbase,hbase:acl,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN
                         ]
2 row(s)
Took 0.6043 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it