hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: What is the pool size when using HConnection.getTable(String)?
Date Wed, 16 Jul 2014 14:23:19 GMT
Please take a look at getBatchPool() in HConnectionManager (in trunk it
would be ConnectionManager)

            int maxThreads = conf.getInt("hbase.hconnection.threads.max",
256);

            int coreThreads = conf.getInt("hbase.hconnection.threads.core",
256);

You can use this method if you want to use your own ExecutorService :

public HTableInterface getTable(String tableName, ExecutorService pool)
throws IOException {

Cheers


On Wed, Jul 16, 2014 at 2:51 AM, chenwenhui <c77_cn@163.com> wrote:

> The HTablePool has been deprecated, and suggest to use
> HConnection.getTable(String) instead.
> The pool size can be set by maxSize parameger when constructing HTablePool
> object, but when using HConnection object, i do not find any way to set the
> pool size. Is it no limit on pool size by default?

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