欢迎投稿

今日深度:

hbase的 HTablePool,

hbase的 HTablePool,


Previous versions of this guide discussed HTablePool, which was deprecated in HBase 0.94, 0.95, and 0.96, and removed in 0.98.1, by HBASE-6500, or HConnection, which is deprecated in HBase 1.0 by Connection. Please use Connection instead.


 HTable 不是线程安全的,因此当多线程插入数据的时候推荐使用 HTablePool

HTable的创建是轻量级的,使用同一个Confuguration的HTable都会共用一个HConnection,那么HTablePool就显得那么多余.

我们只要保证Hconnection是单例的就没问题了.所以HTablePool已被弃用


www.htsjk.Com true http://www.htsjk.com/hbase/41187.html NewsArticle hbase的 HTablePool, Previous versions of this guide discussed HTablePool, which was deprecated in HBase 0.94, 0.95, and 0.96, and removed in 0.98.1, by HBASE-6500, or HConnection, which is deprecated in HBase 1.0 by Connection. Please us...
相关文章
    暂无相关文章
评论暂时关闭