Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Strange Problem on using HRegion's getScanner Method in RegionServer


Copy link to this message
-
Re: Strange Problem on using HRegion's getScanner Method in RegionServer
How do you check in your code you only have one region?
How do you retrieve the HRegion exactly? Since you are running in inside a
coprocessor I presume you have such rpc server per region since Hbase
creates an instance of your coprocessor for each region.

On Tuesday, December 3, 2013, Wukang Lin wrote:

> Hi Ted,
>     Thank you for your response. I use hbase-0.94.6-cdh4.4.0.
>     For test, I just have one region in the table, so, it quite sure that
> the data is inserted in the region. The RPC server is running on each
> RegionServer, one for one.
>     In my real application, I got the HRegion by HRegion EncodeName which
> is specialised as a params of the RPC call, the scan operation is carried
> on, and some old rows were scanned, but some newly inserted rows lost. but
> when i scan the region on client side, such as hbase shell, all rows can be
> got.
>    so, what's the different between the scan operation on RegionServer
> behind the client side scan and the direct scan on RegionServers side using
> HRegion's getScanner Method?
>
>     Thank you.
>