Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to check user permissions in HBase

Solved Go to solution

How to check user permissions in HBase

New Contributor

Hello HCC,

is there a way we can check user permissions for a user called 'xyz' in HBase shell and also how to check permissions granted for a HBase table.

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to check user permissions in HBase

Mentor

@Jalender

The user_permission command shows all access permissions for the current user for a given table:

user_permission <table>

hbase> user_permission
hbase> user_permission '@ns1'
hbase> user_permission '@.*'
hbase> user_permission '@^[a-c].*'
hbase> user_permission 'table1'
hbase> user_permission 'namespace1:table1'
hbase> user_permission '.*'
hbase> user_permission '^[A-C].*'

hbase reference

2 REPLIES 2

Re: How to check user permissions in HBase

Mentor

@Jalender

The user_permission command shows all access permissions for the current user for a given table:

user_permission <table>

hbase> user_permission
hbase> user_permission '@ns1'
hbase> user_permission '@.*'
hbase> user_permission '@^[a-c].*'
hbase> user_permission 'table1'
hbase> user_permission 'namespace1:table1'
hbase> user_permission '.*'
hbase> user_permission '^[A-C].*'

hbase reference

Re: How to check user permissions in HBase

Super Collaborator

You may use user_permission <table> in the hbase shell for the list of the users that can access to the table. Also you may run scan 'hbase:acl', but that would require superuser privs in HBase.

Don't have an account?
Coming from Hortonworks? Activate your account here