HBASE-12835 HBASE-12422 changed new HTable(Configuration) to not use managed Connections anymore
This commit is contained in:
parent
54f5129da8
commit
8470936d76
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue