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 >> Find the tablename in Observer


+
Rajgopal Vaithiyanathan 2013-01-29, 00:56
+
Ted Yu 2013-01-29, 01:09
+
Rajgopal Vaithiyanathan 2013-01-29, 01:16
+
Rajgopal Vaithiyanathan 2013-01-29, 01:21
+
Ted Yu 2013-01-29, 01:25
+
Anoop Sam John 2013-01-29, 04:39
Copy link to this message
-
Re: Find the tablename in Observer
> >Will the CoprocessorEnvironment reference in the  start() method be
> instanceof RegionCoprocessorEnvironment too
>
> No. It will be reference of RegionEnvironment . This is not a public class
> so you wont be able to do the casting.
>

Since RegionEnvionment implements RegionCoprocessorEnvironment, you should
be able to do:

((RegionCoprocessorEnvironment)env).getRegion().getRegionInfo().getTableName();

within your start() method without a problem.
+
Anoop Sam John 2013-01-29, 06:04
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