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 Threaded View
HBase >> mail # user >> Strange Problem on using HRegion's getScanner Method in RegionServer


Copy link to this message
-
Re: Strange Problem on using HRegion's getScanner Method in RegionServer
> 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.
>
>
That sounds like a pretty non-standard setup.  Why not just use the normal
coprocessor endpoint mechanism and execute a scan on the local region,
instead of going through a regionserver-scoped singleton?  Then you can
aggregate results on the client.

Within each coprocessor endpoint instance, you can simply call
RegionCoprocessorEnvironment.getRegion() to get a reference to the local
region.
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