You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2018/04/06 04:16:00 UTC

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

    [ https://issues.apache.org/jira/browse/HBASE-16638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16427939#comment-16427939 ] 

stack commented on HBASE-16638:
-------------------------------

hbase-spark module reverted from branch-2/2.0.0 by HBASE-18817

> 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: Improvement
>          Components: spark
>            Reporter: Ted Yu
>            Assignee: Weiqing Yang
>            Priority: Critical
>             Fix For: 3.0.0
>
>         Attachments: HBASE-16638.ADDENDUM.patch, HBASE-16638_ADDENDUM_v1.patch, HBASE-16638_ADDENDUM_v2.patch, HBASE-16638_v1.patch, HBASE-16638_v2.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
(v7.6.3#76005)