Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C3D5105E5 for ; Mon, 31 Aug 2015 23:00:19 +0000 (UTC) Received: (qmail 7444 invoked by uid 500); 31 Aug 2015 23:00:17 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 7372 invoked by uid 500); 31 Aug 2015 23:00:17 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 7360 invoked by uid 99); 31 Aug 2015 23:00:17 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 23:00:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C130C1AB300 for ; Mon, 31 Aug 2015 23:00:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.9 X-Spam-Level: *** X-Spam-Status: No, score=3.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id q1JSwiMp9veF for ; Mon, 31 Aug 2015 23:00:06 +0000 (UTC) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 0E80A20F19 for ; Mon, 31 Aug 2015 23:00:06 +0000 (UTC) Received: by vkbc123 with SMTP id c123so46591801vkb.3 for ; Mon, 31 Aug 2015 15:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OaCeetEExi6BtIsZQIC2aKZwbAte9DLC0gQhW4MFpsg=; b=ha/1syHgXEqa99QK98uJvy+8jp84Zlc5uPPO5BLPtPC2T885Qdh+vsYycvb83QetRB hoLbE+BbuyXZI9uGY2upP3T0KHHoAXRKMnTcVab+/yk3JkhmUqHikgkCqmfFZ0CXPbSg CaBbcJOLNdxuBo6V32iPkQ3bq7MsT06Kh1XpZDRhexIo6YnvXqjB3IleVeSnwK704O1c v80MI7yA0qarHphc+XtoXhtrPyL3/0iVpbqelDUb1fN/qbi0MuZE5bqUvcW+09dbODto AjaKu2X0E0lgqBAUu2+DznKLFILYtwhGVn1dRnf38O6YYWr2S4u5ahaDqollluzFi7jx uphw== MIME-Version: 1.0 X-Received: by 10.52.155.41 with SMTP id vt9mr13948171vdb.72.1441061999361; Mon, 31 Aug 2015 15:59:59 -0700 (PDT) Received: by 10.31.162.204 with HTTP; Mon, 31 Aug 2015 15:59:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 31 Aug 2015 15:59:59 -0700 Message-ID: Subject: Re: Access cell tags from HBase shell From: Jerry He To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=089e0160caa4924963051ea36412 --089e0160caa4924963051ea36412 Content-Type: text/plain; charset=UTF-8 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 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 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 : > > > > > > > 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 > > > > > > > > > > > > > > > --089e0160caa4924963051ea36412--