Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> connect to the region from coprocessor


+
Wei Tan 2012-10-09, 20:35
+
Anoop Sam John 2012-10-10, 09:20
+
Jean-Marc Spaggiari 2012-10-10, 11:54
+
Anoop Sam John 2012-10-10, 12:41
+
Ramkrishna.S.Vasudevan 2012-10-10, 12:04
Copy link to this message
-
RE: connect to the region from coprocessor
Thank you Anoop and that is a very helpful suggestion.
Best Regards,
Wei

From:   Anoop Sam John <[EMAIL PROTECTED]>
To:     "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
Date:   10/10/2012 05:22 AM
Subject:        RE: connect to the region from coprocessor

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.

-Anoop-
________________________________________
From: Wei Tan [[EMAIL PROTECTED]]
Sent: Wednesday, October 10, 2012 2:05 AM
To: [EMAIL PROTECTED]
Subject: connect to the region from coprocessor

Hi,

In my preput coprocessor I would like to get the old value of the row been
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

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB