Nice I was looking for something like this . thank you Ted just for curiosity can we set attribute through shell .or by default no attribute are set through shell's get .
-----Original Message----- From: Ted Yu [mailto:[email protected]] Sent: Thursday, May 21, 2015 9:29 PM To: [email protected] Subject: Re: Coprocessor accessibility Is your hbase deployed in a secure cluster ? Here is signature for preGetOp: public void preGetOp(final ObserverContext<RegionCoprocessorEnvironment> e, final Get get, final List<Cell> results) throws IOException { User who wants this observer activated can pass attribute, with known name, through Get object. The observer can try to retrieve this attribute: public byte[] getAttribute(String name) { when attribute is present, do special handling. FYI On Thu, May 21, 2015 at 8:42 AM, Navdeep Agrawal < [email protected]> wrote: > Hi, > > I have developed a baseRegionObserver coprocessor overriding > preGetop, preScan which will be returning a top elements of each cell. > Now I want to enable this coprocessor only for myself or some certain > users ,so that normal user will get normal result and some user who > want to use it can enable it . is it possible or else how we can achieve this > . > > > Thanks, > Navdeep >
