Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 53470 invoked from network); 26 Jul 2009 18:30:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jul 2009 18:30:11 -0000 Received: (qmail 49813 invoked by uid 500); 26 Jul 2009 18:31:16 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 49768 invoked by uid 500); 26 Jul 2009 18:31:16 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 49758 invoked by uid 99); 26 Jul 2009 18:31:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jul 2009 18:31:16 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.13.9.59] (HELO web65515.mail.ac4.yahoo.com) (76.13.9.59) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 26 Jul 2009 18:31:06 +0000 Received: (qmail 75050 invoked by uid 60001); 26 Jul 2009 18:30:45 -0000 Message-ID: <293241.74914.qm@web65515.mail.ac4.yahoo.com> X-YMail-OSG: uPVlK40VM1lxaj7ZXFEOAssiqG73Lt3gDhupFkq2SoW2IdO0CSoFkNar20WS7ns9EVdbEnhgOfNDP6_8osEgmJyNeMo1tCqtLoaTEQN3WDr2r7hkTfdR0MBu867Cjw6x3Jr8NipzB1rX2LoX953Ek9ZK_eBa7KwmZQ8rWCx9n.yhR1.K1LtXfm55fG37McvQT_o2ayMJKjKkHblNsq4CasnNxCjgAqYbULxzT0t24fsNkdOPeqcmrgVE95OnisUI.Aoz0ePMPTd3BzgAEWPd0W7rM5oCLn9kLNwwh_BpQ2Fwp0Kq0HmDgdlMZeKSDx.5kqcsAfyHSHQ- Received: from [69.108.154.189] by web65515.mail.ac4.yahoo.com via HTTP; Sun, 26 Jul 2009 11:30:45 PDT X-RocketYMMF: apurtell X-Mailer: YahooMailRC/1358.22 YahooMailWebService/0.7.289.15 References: <73d592f60907250242h489853dar393966287b1abb18@mail.gmail.com> <78568af10907250244o2d1821afnfbdfcd59db5ad1d9@mail.gmail.com> <73d592f60907250303k13634189yfb216d3179927858@mail.gmail.com> Date: Sun, 26 Jul 2009 11:30:45 -0700 (PDT) From: Andrew Purtell Subject: Re: Scanner in a particular Region Server To: hbase-user@hadoop.apache.org In-Reply-To: <73d592f60907250303k13634189yfb216d3179927858@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-549736123-1248633045=:74914" X-Virus-Checked: Checked by ClamAV on apache.org --0-549736123-1248633045=:74914 Content-Type: text/plain; charset=us-ascii You could use HTable.getRegionsInfo(). This returns a map of region information and the servers currently hosting them. Use the server information to find which server is of interest to you. Then use the region information to find the start and end keys for regions of the table of interest hosted on the server. Then create scanners with the appropriate start and end keys. - Andy ________________________________ From: bharath vissapragada To: hbase-user@hadoop.apache.org Sent: Saturday, July 25, 2009 3:03:16 AM Subject: Re: Scanner in a particular Region Server Can you please tell me the classes using wch .META table can be scanned .. I am getting error message when iam trying to scan it like a normal table. Thanks On Sat, Jul 25, 2009 at 3:14 PM, Ryan Rawson wrote: > Nothing in the built in API does this for you, but you could scan > .META. looking for the regions of interest, then build scanners on the > specific ranges of each region. > > Good luck! > > On Sat, Jul 25, 2009 at 2:42 AM, bharath > vissapragada wrote: > > Hi all , > > > > Is there a way , i can get "Scanner" to the part of the table in a > specific > > region server using it's "HOST NAME" ... > > > > Eg : suppose i have a table "A" and one of the region servers have > HOSTNAME > > "region1" > > > > Can i get a scanner to all those rows of table "A" in "region1".. > > > > Thanks > > > --0-549736123-1248633045=:74914--