hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slava Gorelik" <slava.gore...@gmail.com>
Subject Re: HTables Pool
Date Mon, 15 Dec 2008 15:48:03 GMT
As far as i know the HTable itself has connection pool (HConnectionManager
is singleton).I think, multiple instances of HTable within same application
will not help you.
You better try to use multiple process instead of multiple threads.

You can search the mailing list archive, i asked almost same question.
Current HBase client implementation has some RPC Lock, i.e. multi-threading
is not useful.

Best Regards.

On Mon, Dec 15, 2008 at 12:23 PM, Michael Dagaev

> Hi, all
>    Currently, we are using a single instance of HTable in a
> multithreaded application. That is, several threads use the same
> instance of HTable to insert data in the database. Since method
> "commit" of HTable is synchronized, we are afraid that the single
> instance of HTable can be a bottle neck. So, we are going to create a
> pool of HTable instances (all instances are created with the same
> table name) and use the instances simultaneously (an instance per
> thread).
> Does it make sense?
> Thank you for your cooperation,
> M.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message