I use the Hbase-Hadoop combination for my application along with Data Nucleus as ORM.
When I try to access hbase through multiple threads at a time. It throws exceptions:
Exception in thread "Thread-26" javax.jdo.JDODataStoreException 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 javadoc for more information. Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
If necessary, I can provide a full stack trace (since a full stack trace makes it useless here).
Please help me with some conclusions on how to deal with this situation. Is there any configuration I need to do to increase the connection pool?
source share