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 Threaded View
Zookeeper >> mail # user >> SessionExpiredException. help!


Copy link to this message
-
SessionExpiredException. help!
Hi all,

I set the sessionTimeout value to be "Integer.MAX_VALUE" to the constructor
as
 zooKeeper = new ZooKeeper(host, Integer.MAX_VALUE, this);
but reached an "session expired" exception when requesting a create
operation twice on the following line:

lockPath = zooKeeper.create( lockFolder + "/0", new byte[0],
Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL_
SEQUENTIAL);

Exception:
org.apache.zookeeper.KeeperException$SessionExpiredException :
KeeperErrorCode = Session expired for /_lock/0
why does this happen? could anyone give some advice?
Thank you.

Yuhan
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