Help Center> CloudTable Service> FAQs> Data Read/Write> Why Can't I Write Data to HBase?
Updated on 2024-04-30 GMT+08:00

Why Can't I Write Data to HBase?

Symptom

Data cannot be written to HBase. As a result, service data on an application cannot be updated in time.

Possible Cause

There are too many ZooKeeper connections.

Solution

When service code is connected to the same CloudTable HBase cluster, you are advised to create one Connection and reuse it for multiple threads. You do not need to create a Connection for every thread. Connection is a connector for connecting to a CloudTable HBase cluster. Excessive Connections will increase loads on ZooKeeper and deteriorate service read/write performance. Multiple client threads can share one Connection. Typically, client threads of a client program share one Connection.

Data Read/Write FAQs

more