hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wukang Lin <vboylin1...@gmail.com>
Subject Re: Strange Problem on using HRegion's getScanner Method in RegionServer
Date Thu, 05 Dec 2013 13:32:21 GMT
hi Asaf,
   Thank you for your response. the rpc server in my application is a singleton
instance. It is started in a region observer, and work as a single server
in the HRegionServer, just like the RPC servers bring up in the RS's main()
Method. It not attatched with any Table or regions, It can get all the
HRegion instance on the HRegionServer.


2013/12/5 Asaf Mesika <asaf.mesika@gmail.com>

> 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.
> >
>

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