hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: Scanner in a particular Region Server
Date Sun, 26 Jul 2009 18:30:45 GMT
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 <bharathvissapragada1990@gmail.com>
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 <ryanobjc@gmail.com> 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<bharat_v@students.iiit.ac.in> 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
> >
>



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message