HBase Web UI shows list of loaded region coprocessors for each Region Server (you have to navigate to a particular region server page)
-Vlad On Thu, Jul 16, 2015 at 6:42 AM, Ted Yu <[email protected]> wrote: > Can you show us how you formed Get request for row key 0? > > In general you can add logging in your observer so that you can find > whether it is called by examining region server log. > > > > On Jul 16, 2015, at 6:18 AM, James Teng <[email protected]> wrote: > > > > hi all,Today when i tried to use hbase coprocessor, i encountered some > issues there, and below is detailed problem:i have defined one pretty > simple region observer:public class ClientGetRegionObserver extends > BaseRegionObserver { > > public void preGet(ObserverContext<RegionCoprocessorEnvironment> e, > Get get, List<KeyValue> results) throws IOException { > > if (Bytes.equals(get.getRow(), Bytes.toBytes(0))) { > > KeyValue kv = new KeyValue(Bytes.toBytes(0), > Bytes.toBytes("d"), Bytes.toBytes("test"), Bytes.toBytes("xxx")); > > results.add(kv); > > e.bypass(); > > } > > } > > }and here is the config in hbase-site.xml <property> > <name>hbase.coprocessor.region.classes</name> > <value>com.dianping.hbase.ClientGetRegionObserver</value> </property> > > if the coprocessor works as expected, then i should get a column with > value 'xxx' when i issues a get request with row key 0. but it > doesn't.could anyone give me some tips on this? > > thanks! > > james. >
