[ 
https://issues.apache.org/jira/browse/HBASE-14941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045841#comment-15045841
 ] 

Andrew Purtell commented on HBASE-14941:
----------------------------------------

bq. btw, as far as I know connection.getRegionLocator(TableName) is public and 
it has no ACLs restriction.  is this something that we have to restrict? ping 
Andrew Purtell

My guess is we haven't to date because all this information is available to all 
clients through a scan of META, which by design must be available for reads by 
all. 


> locate_region shell command
> ---------------------------
>
>                 Key: HBASE-14941
>                 URL: https://issues.apache.org/jira/browse/HBASE-14941
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Trivial
>         Attachments: HBASE-14941_branch-1.patch
>
>
> Sometimes it is helpful to get the region location given a specified key, 
> without having to scan meta and look at the keys.
> so, having in the shell something like:
> {noformat}
> hbase(main):008:0> locate_region 'testtb', 'z'
> HOST                         REGION                                           
>                                 
>  localhost:42006             {ENCODED => 7486fee0129f0e3a3e671fec4a4255d5, 
>                               NAME => 
> 'testtb,m,1449508841130.7486fee0129f0e3a3e671fec4a4255d5.',
>                               STARTKEY => 'm', ENDKEY => ''}                  
> 1 row(s) in 0.0090 seconds
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to