hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Coprocessor accessibility
Date Fri, 22 May 2015 11:20:42 GMT
In hbase shell, please use:
help 'get'

You will see how custom attribute can be passed. 

Cheers



> On May 22, 2015, at 3:07 AM, Navdeep Agrawal <Navdeep_Agrawal@symantec.com> wrote:
> 
> 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:yuzhihong@gmail.com] 
> Sent: Thursday, May 21, 2015 9:29 PM
> To: user@hbase.apache.org
> 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 < Navdeep_Agrawal@symantec.com>
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
>> 

Mime
View raw message