hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anoop John <anoop.hb...@gmail.com>
Subject Re: Access cell tags from HBase shell
Date Fri, 04 Sep 2015 04:07:27 GMT
Hi Suresh
                You wan to use ur own custom tags with cells?  The features
like cell level vis labels etc are also implemented by storing them as cell
tags.  Yes as others said, the tags is by default a server only thing.
Means you can not pass tags from/to client along with cells.  There is some
security reasons why we had opted this path.  And there were no custom tag
needs by then. Pls let us know what you want to achieve.   There is ways to
pass tags to/from client. I can help you.

-Anoop-


On Tue, Sep 1, 2015 at 4:29 AM, Jerry He <jerryjch@gmail.com> wrote:

> Hi, Suresh
>
> In you Java client program, you can 'label' the cells in your PUT.  You can
> ask which labeled cells to be returned in your Get and Scan, but the labels
> are not returned with the cells.
> Yes, "labels on cells are only interpreted server side"
>
>
> Jerry
>
> On Mon, Aug 31, 2015 at 1:27 PM, Suresh Subbiah <
> suresh.subbiah60@gmail.com>
> wrote:
>
> > Thank you very much Ted, Jean-Marc.
> >
> > I see that slide 4 in
> > http://www.slideshare.net/HBaseCon/features-session-2 states
> > that "cells are only interpreted server side"
> > However https://issues.apache.org/jira/browse/HBASE-9056 &
> > https://issues.apache.org/jira/browse/HBASE-9884 (likely others) seem to
> > indicate that tag values can be accessed/mutated from HBase client
> > programs.
> > I assumed that this mean that code has evolved since the slides were
> > created. Or I could just be misunderstanding what the slide meant.
> >
> > I am hoping to write some kind of small java program to do this now
> (since
> > I am not familiar with REST or Thrift). Do you think that is a reasonable
> > approach?
> >
> > Thanks
> > Suresh
> >
> >
> > On Mon, Aug 31, 2015 at 2:59 PM, Ted Yu <yuzhihong@gmail.com> wrote:
> >
> > > bq. retrieve the list of labels for a given cell
> > >
> > > You're right, J-M.
> > > There is no facility for the above in hbase shell.
> > >
> > > On Mon, Aug 31, 2015 at 12:55 PM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > But I don't think you can retrieve the list of labels for a given
> cell,
> > > > right? Cells are only interpreted server side and are not returned on
> > the
> > > > client side...
> > > >
> > > > 2015-08-31 15:52 GMT-04:00 Ted Yu <yuzhihong@gmail.com>:
> > > >
> > > > > From the help message of put command, you can see the following:
> > > > >
> > > > >   hbase> put 't1', 'r1', 'c1', 'value', ts1,
> > > > {VISIBILITY=>'PRIVATE|SECRET'}
> > > > >
> > > > > Here is the group of related commands:
> > > > >
> > > > >   'visibility labels',
> > > > >   :full_name => 'VISIBILITY LABEL TOOLS',
> > > > >   :comment => "NOTE: Above commands are only applicable if running
> > with
> > > > the
> > > > > VisibilityController coprocessor",
> > > > >   :commands => %w[
> > > > >     add_labels
> > > > >     list_labels
> > > > >     set_auths
> > > > >     get_auths
> > > > >     clear_auths
> > > > >     set_visibility
> > > > >
> > > > > FYI
> > > > >
> > > > > On Mon, Aug 31, 2015 at 12:25 PM, Suresh Subbiah <
> > > > > suresh.subbiah60@gmail.com
> > > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am using HBase 0.98 with HFiles of majorVersion 3.
> > > > > > Is it possible to get and set cell tags from the HBase shell
> > utility?
> > > > > > I have been looking at various JIRAs and see some example client
> > > > testing
> > > > > > programs that seem to do this. However it will be simpler if
I
> > could
> > > > > > get/set cell tags from HBase shell.
> > > > > >
> > > > > > Thank you for your help.
> > > > > >
> > > > > > Best regards,
> > > > > > Suresh
> > > > > >
> > > > >
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message