[ https://issues.apache.org/jira/browse/HBASE-16638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15547129#comment-15547129 ]
Weiqing Yang commented on HBASE-16638: -------------------------------------- Hi, [~ted_yu] I have attached the patch. But there is another jira [HBASE-16713|https://issues.apache.org/jira/browse/HBASE-16713] which will implement the connection caching on HBase side. If HBASE-16713 is fixed, this patch would be not necessary. So I am not sure how to deal with this? Could you please give some direction? Thanks. Adding [~enis] > 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 > Assignee: Weiqing Yang > Attachments: HBASE-16638_v1.patch > > > In HBaseResources.scala : > {code} > case class RegionResource(relation: HBaseRelation) extends ReferencedResource > { > var connection: Connection = _ > var rl: RegionLocator = _ > ... > override def init(): Unit = { > connection = ConnectionFactory.createConnection(relation.hbaseConf) > {code} > 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)