Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Could not retrieve login configuration when trying to connect to ZooKeeper ensemble


Copy link to this message
-
Could not retrieve login configuration when trying to connect to ZooKeeper ensemble
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 = 31, scheme="world", and id="anyone"
   - And here is our code to connect to ZooKeeper ensemble in my local
   machine

*        ZooKeeper zk = new ZooKeeper(_zkHostPort, _zkSessionTimeout, null);
*
*        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=3.4.5-1392090, built on 09/30/2012 17:52 GMT
 INFO [main] (Environment.java:100) - Client environment:host.name=arinto
 INFO [main] (Environment.java:100) - Client
environment:java.version=1.6.0_35
 INFO [main] (Environment.java:100) - Client environment:java.vendor=Sun
Microsystems Inc.
 INFO [main] (Environment.java:100) - Client
environment:java.home=/usr/java/jdk1.6.0_35/jre
 INFO [main] (Environment.java:100) - Client
environment:java.class.path=/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/classes
 INFO [main] (Environment.java:100) - Client
environment:java.library.path=/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::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 INFO [main] (Environment.java:100) - Client environment:java.io.tmpdir=/tmp
 INFO [main] (Environment.java:100) - Client environment:java.compiler=<NA>
 INFO [main] (Environment.java:100) - Client environment:os.name=Linux
 INFO [main] (Environment.java:100) - Client environment:os.arch=amd64
 INFO [main] (Environment.java:100) - Client
environment:os.version=3.2.0-33-generic
 INFO [main] (Environment.java:100) - Client environment:user.name=arinto
 INFO [main] (Environment.java:100) - Client
environment:user.home=/home/arinto
 INFO [main] (Environment.java:100) - Client
environment:user.dir=/home/arinto/gitproject/zkndb
 INFO [main] (ZooKeeper.java:438) - Initiating client connection,
connectString=localhost:2184 sessionTimeout=60000 watcher=null
DEBUG [main] (ClientCnxn.java:99) - zookeeper.disableAutoWatchReset is false
 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 0x13b4342fd4a0002, negotiated timeout = 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,#ffffff9241ffffff9fffffffac6fffffffddffffffc2fffffff31effffffe19ffffff8117fffffff027ffffff9c7d8ffffffd6ffffffa2ffffffd5403ffffffd5ffffffbb13ffffffd2fffffffb3dffffff98ffffff97ffffff93fffffff5353afffffff64644ffffffb8efffffffcffffffea177b6affffff96ffffffd01059213
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB