Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 ADE06D03E for ; Fri, 30 Nov 2012 18:25:33 +0000 (UTC) Received: (qmail 73689 invoked by uid 500); 30 Nov 2012 18:25:32 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 73631 invoked by uid 500); 30 Nov 2012 18:25:32 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 73616 invoked by uid 99); 30 Nov 2012 18:25:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 18:25:32 +0000 X-ASF-Spam-Status: No, hits=-4.3 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.33.244.6] (HELO rhv-mipot-001.corp.ebay.com) (216.33.244.6) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 18:25:26 +0000 X-EBay-Corp: Yes X-IronPort-AV: E=Sophos;i="4.84,188,1355126400"; d="scan'208";a="95938220" Received: from rhv-vtenf-002.corp.ebay.com (HELO RHV-EXMHT-003.corp.ebay.com) ([10.112.113.53]) by rhv-mipot-001.corp.ebay.com with ESMTP; 30 Nov 2012 10:25:03 -0800 Received: from RHV-EXRDA-S31.corp.ebay.com ([fe80::c83d:a896:efe2:c293]) by RHV-EXMHT-003.corp.ebay.com ([fe80::814f:de0a:319f:653c%14]) with mapi id 14.02.0318.004; Fri, 30 Nov 2012 10:25:02 -0800 From: Tianying Chang To: "user@zookeeper.apache.org" , "michi@cs.stanford.edu" Subject: RE: KeeperErrorCode=InvalideACL while trying to create a znode Thread-Topic: KeeperErrorCode=InvalideACL while trying to create a znode Thread-Index: AQHNzObNM/SLOk2pWkSfSiQm4llIiJgCrSw7 Date: Fri, 30 Nov 2012 18:25:02 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.245.27.242] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org Michi, =0A= =0A= Thanks for the helpful suggestion! You are right! I did not call addAuthInf= o(). And after further thinking, I feel my case does not need that tight se= curity at this stage, instead, I just create the ACL of new ACL(ZooDefs.Per= ms.READ, Ids.ANYONE_ID_UNSAFE). That way, I can create the znode without ca= lling addAuthInfo(). I will explore the authentication a little later. =0A= =0A= Thanks a lot=0A= Tian-Ying =0A= ________________________________________=0A= From: mutsuzaki@gmail.com [mutsuzaki@gmail.com] on behalf of Michi Mutsuzak= i [michi@cs.stanford.edu]=0A= Sent: Tuesday, November 27, 2012 1:32 PM=0A= To: user@zookeeper.apache.org=0A= Subject: Re: KeeperErrorCode=3DInvalideACL while trying to create a znode= =0A= =0A= Hi Tian-Ying,=0A= =0A= Did you call ZooKeeper.addAuthInfo()? The client session needs to be=0A= authenticated before you can use ZooDefs.Ids.CREATOR_ALL_ACL.=0A= =0A= --Michi=0A= =0A= On Tue, Nov 27, 2012 at 11:05 AM, Tianying Chang wrote= :=0A= > Hi,=0A= >=0A= > I am trying to implement a global lock with zookeeper. However, it throw= s an exception of InvalidACLException while I am trying to create an epherm= al/sequential znode. I create the node with ACL of ZooDefs.Ids.CREATOR_ALL_= ACL, which should give all the permission.=0A= >=0A= > Anyone knows why I am getting this Exception? BTW, since I am working wit= h hbase, I am using the zookeeper client library provided by hbase when nee= ded, don't know if that could cause some complication here.=0A= >=0A= > Thanks=0A= > Tian-Ying=0A=