转载请注明出处:jiq•钦's technical Blog
使用HBase0.94版本的时候提示HTablePool已经过时了,为什么?
我们先看HConnection的getTable方法描述:
-
getTable
HTableInterface getTable(String tableName) throws IOException
Retrieve an HTableInterface implementation for access to a table. The returned HTableInterface is not thread safe, a new instance should be created for each using thread. This is a lightweight operation, pooling or caching of the returned HTableInterface is neither required nor desired. Note that the HConnection needs to be unmanaged (created with