Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> What is the pool size when using HConnection.getTable(String)?


Copy link to this message
-
Re: What is the pool size when using HConnection.getTable(String)?
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 <[EMAIL PROTECTED]> wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB