If you use the following method: public static HConnection <http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HConnection.html> createConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService <http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ExecutorService.html?is-external=true> pool)
You can pass your own ExecutorService. See example in http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ExecutorService.html?is-external=true Cheers On Mon, Aug 11, 2014 at 2:40 AM, Jianshi Huang <[email protected]> wrote: > I followed the manual and uses HConnectionManager.createConnection to > create a connection pool. > > However I couldn't find reference about how to specify the pool size? It > should be in the second parameter pool of type ExecutorService, right? How > can I do that? > > Cheers, > -- > Jianshi Huang > > LinkedIn: jianshi > Twitter: @jshuang > Github & Blog: http://huangjs.github.com/ >
