You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Guillermo Ortiz <ko...@gmail.com> on 2014/08/28 15:18:48 UTC
How to know regions in a RegionServer?
How could I know with Java which Regions are served for each RegionServer?
I want to execute an parallel scan, one thread for each regionServer
because I think that's better than one for region, or is it not??
Re: How to know regions in a RegionServer?
Posted by Ted Yu <yu...@gmail.com>.
For 0.98, please take a look at this method in HTable:
public NavigableMap<HRegionInfo, ServerName> getRegionLocations() throws
IOException {
Cheers
On Thu, Aug 28, 2014 at 6:18 AM, Guillermo Ortiz <ko...@gmail.com>
wrote:
> How could I know with Java which Regions are served for each RegionServer?
> I want to execute an parallel scan, one thread for each regionServer
> because I think that's better than one for region, or is it not??
>