Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFE86D0F5 for ; Wed, 10 Oct 2012 12:44:08 +0000 (UTC) Received: (qmail 58431 invoked by uid 500); 10 Oct 2012 12:44:06 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 58046 invoked by uid 500); 10 Oct 2012 12:44:01 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 57973 invoked by uid 99); 10 Oct 2012 12:43:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 12:43:59 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anoopsj@huawei.com designates 119.145.14.64 as permitted sender) Received: from [119.145.14.64] (HELO szxga01-in.huawei.com) (119.145.14.64) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 12:43:54 +0000 Received: from 172.24.2.119 (EHLO szxeml207-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQJ34819; Wed, 10 Oct 2012 20:43:32 +0800 (CST) Received: from SZXEML411-HUB.china.huawei.com (10.82.67.138) by szxeml207-edg.china.huawei.com (172.24.2.56) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 10 Oct 2012 20:41:55 +0800 Received: from SZXEML531-MBX.china.huawei.com ([fe80::61a8:2cb5:62f9:d4a4]) by szxeml411-hub.china.huawei.com ([::1]) with mapi id 14.01.0323.003; Wed, 10 Oct 2012 20:41:50 +0800 From: Anoop Sam John To: "user@hbase.apache.org" Subject: RE: connect to the region from coprocessor Thread-Topic: connect to the region from coprocessor Thread-Index: AQHNpl3eMp2O4tBw0kKLnmf1M0ucu5eyQ10q//+lw4CAAJLuYA== Date: Wed, 10 Oct 2012 12:41:49 +0000 Message-ID: <0CE69E9126D0344088798A3B7F7F80863A4E2223@szxeml531-mbx.china.huawei.com> References: <0CE69E9126D0344088798A3B7F7F80863A4E20A4@szxeml531-mbx.china.huawei.com>, In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.96.95] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org >I mean, if cells are big, they might be on different regions / regionserve= rs? All the KVs [columns, versions] corresponding to one rowkey will be always = there in one region. One row is not splittable -Anoop- ________________________________________ From: Jean-Marc Spaggiari [jean-marc@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 / regionserver= s? 2012/10/10, 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 instanc= e > and making a get() will be too much unwanted overhead. > > -Anoop- > ________________________________________ > From: Wei Tan [wtan@us.ibm.com] > Sent: Wednesday, October 10, 2012 2:05 AM > To: hbase-user@hadoop.apache.org > Subject: connect to the region from coprocessor > > Hi, > > In my preput coprocessor I would like to get the old value of the row bee= n > input. Now I am creating a HTable instance and using the get interface; > function wise it works fine. Given the row is physically in the same > region as the cp, is there any lightweight approach doing that? > > Thanks! > > > Best Regards, > Wei=