Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-09-2017 09:04 PM
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.
Created 11-09-2017 09:57 PM
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
Created 11-09-2017 09:57 PM
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
Created 11-09-2017 10:35 PM
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.