Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1AEF11CC3 for ; Sat, 21 Jun 2014 22:03:30 +0000 (UTC) Received: (qmail 68438 invoked by uid 500); 21 Jun 2014 22:03:30 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 68354 invoked by uid 500); 21 Jun 2014 22:03:30 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 68341 invoked by uid 99); 21 Jun 2014 22:03:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 22:03:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nidmgg@gmail.com designates 209.85.220.181 as permitted sender) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 22:03:26 +0000 Received: by mail-vc0-f181.google.com with SMTP id il7so4535449vcb.26 for ; Sat, 21 Jun 2014 15:03:01 -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=MsibLIjZ9CAKaJbdr0PSni/ePcSDVSakJa9eFt+JcqQ=; b=eLIZehD7HGugm5SrDHVDurcFuWVXWqrjCVljlaCKTaqDqXigP5hH9XaJR9F8pCRIn+ Gx21lMSYDR4QmJILMXL1nQ9x8QlZu1O4FtWgncBlFn7tT9WPy6naggQE3MBLsGVX4zGA VeR4aPyX/PsNwE7capZjMo1trNEUaU7Xb8ddkLOVgmMCIPRonw2LZkRQsajEe92SfXaW q23M/eFSFt8fOdHG3t+77f2ypux3BI/IBXiaSbtT2nfkV8P8iySLTPdRPC+xZfodvl3I Gf+oir2nVSoWjErCl9U2AIUngXPThfvYt2dm6SPe3YzYFqob8VnLIyoREGqr5naYucT7 ciiQ== MIME-Version: 1.0 X-Received: by 10.221.5.1 with SMTP id oe1mr10374398vcb.10.1403388181599; Sat, 21 Jun 2014 15:03:01 -0700 (PDT) Received: by 10.220.174.5 with HTTP; Sat, 21 Jun 2014 15:03:01 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Jun 2014 15:03:01 -0700 Message-ID: Subject: Re: java implementation like security.rb (ACL grant, revoke, etc.) From: Demai Ni To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary=089e012941380bdba704fc5fc60c X-Virus-Checked: Checked by ClamAV on apache.org --089e012941380bdba704fc5fc60c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hi, Andrew, the grant() and revoke() look like what I need for a java client call. Thanks for the help Demai On Sat, Jun 21, 2014 at 11:08 AM, Andrew Purtell wrote: > That is test only code. Ted shouldn't be giving you a pointer to it. > Everything in test/ is private and can change arbitrarily at any time at > our option. > > You want to look at AccessControlClient in hbase-client. If there are > things you'd like to see there which are currently missing, please file a > JIRA and consider providing a patch. > > > On Fri, Jun 20, 2014 at 9:40 PM, Demai Ni wrote: > > > Ted, Thanks a lot=E2=80=A6 Demai > > > > > > On Fri, Jun 20, 2014 at 7:35 PM, Ted Yu wrote: > > > > > For 0.98+, please take a look at: > > > > > > > > > hbase-server//src/test/java/org/apache/hadoop/hbase/security/access/Secur= eTestUtil.java > > > > > > where you can find grantGlobal(), etc. > > > > > > Cheers > > > > > > > > > On Fri, Jun 20, 2014 at 3:12 PM, Demai Ni wrote: > > > > > > > hi, folks, > > > > > > > > I am looking for java API that can do 'grant','revoke' etc, which i= s > > > > exactly the functions implemented in security.rb. So that the > function > > > can > > > > be called through java client. > > > > > > > > It is kind of straigtforward to do a syntax translation from jruby = to > > > java. > > > > Well, just like to check whether we have something like it already? > > > > > > > > btw, I am on both 94 and 98. Many thanks > > > > > > > > Demai > > > > > > > > > > > > > -- > Best regards, > > - Andy > > Problems worthy of attack prove their worth by hitting back. - Piet Hein > (via Tom White) > --089e012941380bdba704fc5fc60c--