hbase|HBase运维笔记系列

2013-02-22 11:47:06,794 ERROR [STDERR] (http-0.0.0.0-8080-26) 13/02/22 11:47:06 INFO client.HConnectionManager$HConnectionImplementation: This client just lost it's session with ZooKeeper, will automatically reconnect when needed. 2013-02-22 11:47:06,794 ERROR [STDERR] (http-0.0.0.0-8080-26) 13/02/22 11:47:06 INFO client.HConnectionManager$HConnectionImplementation: ZK session expired. This disconnect could have been caused by a network partition or a long-running GC pause, either way it's recommended that you verify your environment. 2013-02-22 11:47:06,795 ERROR [STDERR] (http-0.0.0.0-8080-35) 13/02/22 11:47:06 ERROR zookeeper.ZooKeeperWatcher: hconnection-0x13cfb70ec0d0061 Received unexpected KeeperException, re-throwing exception org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase at org.apache.zookeeper.KeeperException.create(KeeperException.java:127) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:150) at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:263) at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.checkIfBaseNodeAvailable(ZooKeeperNodeTracker.java:214) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.checkIfBaseNodeAvailable(HConnectionManager.java:702) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:633) at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:108) at com.newcosoft.hadoop.hbase.TestHBase.createTable(TestHBase.java:92) at com.newcosoft.hadoop.hbase.TestHBase.(TestHBase.java:75) at com.newcosoft.hadoop.hbase.TestHBase.getInstance(TestHBase.java:85) at org.apache.jsp.testQueryHbase_jsp._jspService(testQueryHbase_jsp.java:53)

regionserver的超时时间需要设置为以下,防止FULL GC,带来的zookeeper超时 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=70 " hbase.regionserver.lease.period 240000 【hbase|HBase运维笔记系列】 hbase.rpc.timeout 280000

    推荐阅读