HBASE-12835 HBASE-12422 changed new HTable(Configuration) to not use managed Connections anymore

This commit is contained in:
Enis Soztutar 2015-01-12 16:21:04 -08:00
parent 54f5129da8
commit 8470936d76
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public class HTable implements HTableInterface {
this.connection = null;
return;
}
this.connection = (ClusterConnection) ConnectionFactory.createConnection(conf);
this.connection = ConnectionManager.getConnectionInternal(conf);
this.configuration = conf;
this.pool = getDefaultExecutor(conf);
@ -251,7 +251,7 @@ public class HTable implements HTableInterface {
@Deprecated
public HTable(Configuration conf, final TableName tableName, final ExecutorService pool)
throws IOException {
this.connection = (ClusterConnection) ConnectionFactory.createConnection(conf);
this.connection = ConnectionManager.getConnectionInternal(conf);
this.configuration = conf;
this.pool = pool;
if (pool == null) {