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 DF5DCE576 for ; Tue, 27 Nov 2012 19:26:55 +0000 (UTC) Received: (qmail 81635 invoked by uid 500); 27 Nov 2012 19:26:55 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 81591 invoked by uid 500); 27 Nov 2012 19:26:55 -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 81581 invoked by uid 99); 27 Nov 2012 19:26:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 19:26:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of arinto@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-ia0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 19:26:50 +0000 Received: by mail-ia0-f170.google.com with SMTP id x24so8436025iak.15 for ; Tue, 27 Nov 2012 11:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=BAmwMIUaQKB1nisR4tIztvadGxo9bVtchyIgJz7UsD4=; b=qOYp1TzYovDUFsXWlOCFx3Zgdesx6+ku+qF83p35q/QJGarddO4h8GaZxHcakYBmIo g9JVJcngrYjDZ3w1ys8BH4uNXCb1Ti18/3jWf+SwIj0EkNh4AM71SIy3qfdDGX4PQR9b H4nejH85V4r5wB5Gr9exu3C3oeEgps9DlMzWv+sr9IHlxhS8V1tdX1fxRbjBWQlh2v1P KeKNNxmlqGF2d9a/ZtnUmEj+oz2ZknHZRzRrg7fSc2z9bv827+EwrWaF8Pj84uvEXvai v3Gw0uAGHTblpgasm5QSQlK0jmytXxPGlQYLO6iSXMCoT3MwQKSWF4ycH/OsUGelFu8d UQdQ== Received: by 10.42.44.196 with SMTP id c4mr1799281icf.45.1354044389439; Tue, 27 Nov 2012 11:26:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.149.195 with HTTP; Tue, 27 Nov 2012 11:26:08 -0800 (PST) From: Arinto Murdopo Date: Tue, 27 Nov 2012 20:26:08 +0100 Message-ID: Subject: Could not retrieve login configuration when trying to connect to ZooKeeper ensemble To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=bcaec5182234d7b9df04cf7f069b X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5182234d7b9df04cf7f069b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, We're currently developing simple ZooKeeper client to test its throughput when ZK is used as persistent store in High Availability YARN ( https://issues.apache.org/jira/browse/YARN-128). Here are some details about our configurations: - ZooKeeper client and library: version 3.4.5 stable release - ZK address: localhost:2184 - Session timeout: 60 s - ACL Configuration: world:anyone:rwcda -> this will result in one entry in ACL list with "perms" value =3D 31, scheme=3D"world", and id=3D"anyon= e" - And here is our code to connect to ZooKeeper ensemble in my local machine * ZooKeeper zk =3D new ZooKeeper(_zkHostPort, _zkSessionTimeout, nul= l); * * zk.register(new ForwardingWatcher(zk));* * return zk;* However, I always encounter this error: *DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration* *Nov 27, 2012 8:12:38 PM zkndb.storage.ZKStorageImpl storeApplicationState* * * And eventually this security exception is thrown: *DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration* * * So in this case, what is the possible case of this error? The complete output from our simple client is shown below: Output: INFO [main] (Environment.java:100) - Client environment:zookeeper.version=3D3.4.5-1392090, built on 09/30/2012 17:52 GM= T INFO [main] (Environment.java:100) - Client environment:host.name=3Darinto INFO [main] (Environment.java:100) - Client environment:java.version=3D1.6.0_35 INFO [main] (Environment.java:100) - Client environment:java.vendor=3DSun Microsystems Inc. INFO [main] (Environment.java:100) - Client environment:java.home=3D/usr/java/jdk1.6.0_35/jre INFO [main] (Environment.java:100) - Client environment:java.class.path=3D/usr/share/clusterj/clusterj-7.1.15a.jar:/usr= /share/zookeeper/zookeeper-3.4.5.jar:/usr/share/guava/guava-13.0.1.jar:/usr= /share/slf4j/slf4j-api-1.7.2.jar:/usr/share/slf4j/slf4j-log4j12-1.7.2.jar:/= usr/share/log4j/log4j-1.2.17.jar:/home/arinto/gitproject/zkndb/build/classe= s INFO [main] (Environment.java:100) - Client environment:java.library.path=3D/usr/java/jdk1.6.0_35/jre/lib/amd64/server:= /usr/java/jdk1.6.0_35/jre/lib/amd64:/usr/java/jdk1.6.0_35/jre/../lib/amd64:= /usr/java/jdk1.7.0_09/jre/lib/amd64:/usr/java/jdk1.7.0_09/jre/lib/i386::/us= r/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib INFO [main] (Environment.java:100) - Client environment:java.io.tmpdir=3D/= tmp INFO [main] (Environment.java:100) - Client environment:java.compiler=3D INFO [main] (Environment.java:100) - Client environment:os.name=3DLinux INFO [main] (Environment.java:100) - Client environment:os.arch=3Damd64 INFO [main] (Environment.java:100) - Client environment:os.version=3D3.2.0-33-generic INFO [main] (Environment.java:100) - Client environment:user.name=3Darinto INFO [main] (Environment.java:100) - Client environment:user.home=3D/home/arinto INFO [main] (Environment.java:100) - Client environment:user.dir=3D/home/arinto/gitproject/zkndb INFO [main] (ZooKeeper.java:438) - Initiating client connection, connectString=3Dlocalhost:2184 sessionTimeout=3D60000 watcher=3Dnull DEBUG [main] (ClientCnxn.java:99) - zookeeper.disableAutoWatchReset is fals= e INFO [main-SendThread(localhost:2184)] (ClientCnxn.java:966) - Opening socket connection to server localhost/127.0.0.1:2184. Will not attempt to authenticate using SASL (Unable to locate a login configuration) INFO [main-SendThread(localhost:2184)] (ClientCnxn.java:849) - Socket connection established to localhost/127.0.0.1:2184, initiating session DEBUG [main-SendThread(localhost:2184)] (ClientCnxn.java:889) - Session establishment request sent on localhost/127.0.0.1:2184 DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration Nov 27, 2012 8:12:38 PM zkndb.storage.ZKStorageImpl storeApplicationState INFO: Storing info for app: -7686504933654477676 at: /ZKRMStateRoot/-7686504933654477676 INFO [main-SendThread(localhost:2184)] (ClientCnxn.java:1207) - Session establishment complete on server localhost/127.0.0.1:2184, sessionid =3D 0x13b4342fd4a0002, negotiated timeout =3D 40000 DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration DEBUG [main-SendThread(localhost:2184)] (ClientCnxn.java:815) - Reading reply sessionid:0x13b4342fd4a0002, packet:: clientPath:null serverPath:null finished:false header:: 1,1 replyHeader:: 1,429496729624,-101 request:: '/ZKRMStateRoot/-7686504933654477676,#ffffff9241ffffff9fffffffac6fffffffddf= fffffc2fffffff31effffffe19ffffff8117fffffff027ffffff9c7d8ffffffd6ffffffa2ff= ffffd5403ffffffd5ffffffbb13ffffffd2fffffffb3dffffff98ffffff97ffffff93ffffff= f5353afffffff64644ffffffb8efffffffcffffffea177b6affffff96ffffffd0105921347d= ffffffa3,v{s{31,s{'world,'anyone}}},0 response:: DEBUG [main-SendThread(localhost:2184)] (ZooKeeperSaslClient.java:519) - Could not retrieve login configuration: java.lang.SecurityException: Unable to locate a login configuration Nov 27, 2012 8:12:38 PM zkndb.storage.ZKStorageImpl storeApplicationState Exception in when trying to store application state Arinto Murdopo European Master in Distributed Computing (EMDC) Universitat Polit=E8cnica de Catalunya =B7 BarcelonaTech, Barcelona, Spain KTH Royal Institute of Technology, Stockholm, Sweden Phone: +46 725 548 759 --bcaec5182234d7b9df04cf7f069b--