[
https://issues.apache.org/jira/browse/HBASE-12373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213771#comment-14213771
]
Jerry He commented on HBASE-12373:
----------------------------------
Hi, [~anoop.hbase]
I attached v2 which added the shell support.
Did more testing:
Run as super user:
{code}
hbase(main):001:0> list_labels
system
public
private
0 row(s) in 2.3200 seconds
{code}
Run as non super user:
{code}
hbase(main):006:0> list_labels
ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: User 'user2' is
not authorized to perform this action.
Here is some help for this command:
List the visibility labels defined in the system.
Syntax : list_labels
For example:
hbase> list_labels
{code}
Regarding ExpAsStringVisibilityLabelServiceImpl, I thought it is a test
implementation. Also the labels there are more like user auths, not like
defined system level labels.
If we were to list the labels there, we just get all the qualifiers from all
the user rows?
> Provide a command to list visibility labels
> -------------------------------------------
>
> Key: HBASE-12373
> URL: https://issues.apache.org/jira/browse/HBASE-12373
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 0.98.7, 0.99.1
> Reporter: Jerry He
> Assignee: Jerry He
> Priority: Minor
> Fix For: 0.98.9, 0.99.2
>
> Attachments: HBASE-12373-master-v2.patch, HBASE-12373-master.patch
>
>
> A command to list visibility labels that are in place would be handy.
> This is also in line with many of the other hbase list commands.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)