RE: connect to the region from coprocessor

2012-10-10 Thread Anoop Sam John
Hi To your prePut() method you are getting an ObserverContext argument. From this you can easily get a ref to the current region. ctx.getEnvironment().getRegion() Directly make calls to this region object. Creation of the HTable instance and making a get() will be too much unwanted overhead.

Re: connect to the region from coprocessor

2012-10-10 Thread Jean-Marc Spaggiari
But is it possible that the previous value for this row to be stored in another region? I mean, if cells are big, they might be on different regions / regionservers? 2012/10/10, Anoop Sam John : > Hi > To your prePut() method you are getting an ObserverContext argument. > From this you can ea

RE: connect to the region from coprocessor

2012-10-10 Thread Ramkrishna.S.Vasudevan
rg > Subject: Re: connect to the region from coprocessor > > But is it possible that the previous value for this row to be stored > in another region? > > I mean, if cells are big, they might be on different regions / > regionservers? > > 2012/10/10, Anoop Sam John :

RE: connect to the region from coprocessor

2012-10-10 Thread Anoop Sam John
n-m...@spaggiari.org] Sent: Wednesday, October 10, 2012 5:24 PM To: user@hbase.apache.org Subject: Re: connect to the region from coprocessor But is it possible that the previous value for this row to be stored in another region? I mean, if cells are big, they might be on different regions / regionservers? 2

RE: connect to the region from coprocessor

2012-10-11 Thread Wei Tan
Thank you Anoop and that is a very helpful suggestion. Best Regards, Wei From: Anoop Sam John To: "user@hbase.apache.org" , "hbase-u...@hadoop.apache.org" , Date: 10/10/2012 05:22 AM Subject: RE: connect to the region from coprocessor Hi To your