org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.*

nabble.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Users - HBase is able to connect to ZooKeeper but the connection closes immediately

    nabble.com | 7 months ago
    org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.*

    Root Cause Analysis

    1. org.apache.hadoop.hbase.ZooKeeperConnectionException

      HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.*

      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>()
    2. HBase - Client
      HTableFactory.createHTableInterface
      1. org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155)
      2. org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1002)
      3. org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:304)
      4. org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:295)
      5. org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:157)
      6. org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:169)
      7. org.apache.hadoop.hbase.client.HTableFactory.createHTableInterface(HTableFactory.java:36)
      7 frames