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 <[email protected]> To: [email protected] 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 <[email protected]> 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<[email protected]> 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 > > >
