HBase Connection Pooling
Posted u013063153
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HBase Connection Pooling相关的知识,希望对你有一定的参考价值。
两种方法获得连接:
Configuration configuration = HBaseConfiguration.create();
ExecutorService executor = Executors.newFixedThreadPool(nPoolSize);
(1)旧API中:
Connection connection = HConnectionManager.createConnection(conf, executor);
(2)新API中:
Connection connection = ConnectionFactory.createConnection(conf, executor);
以上是关于HBase Connection Pooling的主要内容,如果未能解决你的问题,请参考以下文章
oracle database resident connection pooling(驻留连接池)
11.2.0.4单实例DRCP(Database Resident Connection Pooling)简单测试
Tomcat Pooling DataSource数据库连接池优化(20180705)