You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/09/15 20:41:20 UTC

[jira] [Created] (HBASE-16638) Reduce the number of Connection's created in classes of hbase-spark module

Ted Yu created HBASE-16638:
------------------------------

             Summary: Reduce the number of Connection's created in classes of hbase-spark module
                 Key: HBASE-16638
                 URL: https://issues.apache.org/jira/browse/HBASE-16638
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu


In HBaseResources.scala :

case class RegionResource(relation: HBaseRelation) extends ReferencedResource {
  var connection: Connection = _
  var rl: RegionLocator = _
...
  override def init(): Unit = {
    connection = ConnectionFactory.createConnection(relation.hbaseConf)

Connection is created per RegionResource.
This is not necessary.

Caching of Connection's should be provided to reduce the number of concurrent Connection's.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)