Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 306DC200D33 for ; Wed, 8 Nov 2017 07:44:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2EDBA160BDA; Wed, 8 Nov 2017 06:44:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 79A58160BE0 for ; Wed, 8 Nov 2017 07:44:03 +0100 (CET) Received: (qmail 13575 invoked by uid 500); 8 Nov 2017 06:44:02 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 13563 invoked by uid 99); 8 Nov 2017 06:44:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 06:44:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3FBDDCF7B5 for ; Wed, 8 Nov 2017 06:44:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4wkQx21v59r6 for ; Wed, 8 Nov 2017 06:43:59 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 175B96268D for ; Wed, 8 Nov 2017 06:25:24 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 07AF2E06BB for ; Wed, 8 Nov 2017 06:25:19 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 11A0B2419F for ; Wed, 8 Nov 2017 06:25:01 +0000 (UTC) Date: Wed, 8 Nov 2017 06:25:01 +0000 (UTC) From: "Yung-An He (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19201) BulkLoading in HBaseContext in hbase-spark does not close connection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Nov 2017 06:44:04 -0000 [ https://issues.apache.org/jira/browse/HBASE-19201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243432#comment-16243432 ] Yung-An He commented on HBASE-19201: ------------------------------------ Hi Could you post the needed code which you copied into the scala project? > BulkLoading in HBaseContext in hbase-spark does not close connection > -------------------------------------------------------------------- > > Key: HBASE-19201 > URL: https://issues.apache.org/jira/browse/HBASE-19201 > Project: HBase > Issue Type: Bug > Components: hbase > Affects Versions: 1.1.12 > Environment: I was using the cdh 5.11.1 version but I checken on newest branch and problem persists > Reporter: Lucas Resch > Labels: newbie > Original Estimate: 2h > Remaining Estimate: 2h > > Within the hbase-spark module an HBaseContext exists that provides utility functions to do bulkLoading data in HBase. I tried using this function in a streaming context, but after a while Zookeeper denies further connections since the maximum of connections per client is exhausted. > This issue seems to be within HBaseContext, since the functions bulkLoad and bulkLoadThinRows open a connection via the ConnectionFactory, but never closes that connection. > I copied the needed code into a new scala project and added a conn.close() at the end of the function and the problem is gone. > It seems like no one else has had this problem before. I'm guessing thats because almost no one uses its function within a streaming context. And a one time call to it with RDDs might never reach that upper limit on connections. -- This message was sent by Atlassian JIRA (v6.4.14#64029)