Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D5391850C for ; Mon, 7 Dec 2015 17:48:12 +0000 (UTC) Received: (qmail 81501 invoked by uid 500); 7 Dec 2015 17:48:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 81128 invoked by uid 500); 7 Dec 2015 17:48:11 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 80813 invoked by uid 99); 7 Dec 2015 17:48:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 17:48:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 037582C1F5A for ; Mon, 7 Dec 2015 17:48:11 +0000 (UTC) Date: Mon, 7 Dec 2015 17:48:11 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14941) locate_region shell command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045328#comment-15045328 ] Matteo Bertozzi commented on HBASE-14941: ----------------------------------------- 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 [~apurtell] > 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)