hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From polyimide <polyim...@gmail.com>
Subject Unable to override zookeeper server maxSessionTimeout property
Date Thu, 07 Nov 2013 18:11:42 GMT
I am running HBase 0.94.11 and zookeeper 3.4.5-1392090 in standalone mode.
After a couple of hours, HBase exits because zookeeper session expired.
Trying to change the session timeout from the default 40 seconds to 180. 
Set the following properties in the hbase-site.xml. But as shown in the
hbase log file below, the zookeeper server still uses the default tickTime
and maxSessionTimeout. 
The zookeeper is started by hbase and lives in the same jvm. There is no
zoo.cnf in the path. 
How can I increase the zookeeper maxSessionTimeout to avoid session expire
due to long running gc?

  <property>
    <name>zookeeper.session.timeout</name>
    <value>180000</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.maxSessionTimeout</name>
    <value>180000</value>
  </property>
  <property>
    <name>hbase.master.zookeeper.session.timeout</name>
    <value>180000</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.tickTime</name>
    <value>9000</value>
  </property>
  <property>
    <name>hbase.master.zookeeper.property.tickTime</name>
    <value>9000</value>
  </property>
  <property>
    <name>tickTime</name>
    <value>9000</value>
  </property>


2013-11-07 09:49:11,543 INFO org.apache.zookeeper.server.ZooKeeperServer:
Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout
40000 datadir /tmp/hbase-root/zookeeper/zookeeper_0/version-2 snapdir
/tmp/hbase-root/zookeeper/zookeeper_0/version-2
2013-11-07 09:49:11,565 INFO
org.apache.zookeeper.server.NIOServerCnxnFactory: binding to port
0.0.0.0/0.0.0.0:2181
2013-11-07 09:49:11,570 INFO
org.apache.zookeeper.server.persistence.FileTxnSnapLog: Snapshotting: 0x0 to
/tmp/hbase-root/zookeeper/zookeeper_0/version-2/snapshot.0
2013-11-07 09:49:11,591 INFO
org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection
from /127.0.0.1:55654
2013-11-07 09:49:11,595 INFO org.apache.zookeeper.server.NIOServerCnxn:
Processing stat command from /127.0.0.1:55654




--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Unable-to-override-zookeeper-server-maxSessionTimeout-property-tp4052554.html
Sent from the HBase User mailing list archive at Nabble.com.

Mime
View raw message