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 29B69200D27 for ; Wed, 25 Oct 2017 11:29:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 281ED160BDA; Wed, 25 Oct 2017 09:29:08 +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 6E4AA1609E5 for ; Wed, 25 Oct 2017 11:29:07 +0200 (CEST) Received: (qmail 43537 invoked by uid 500); 25 Oct 2017 09:29:06 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 43522 invoked by uid 99); 25 Oct 2017 09:29:06 -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, 25 Oct 2017 09:29:06 +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 BCED7C5901 for ; Wed, 25 Oct 2017 09:29:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_RED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oZbevXN5gIv4 for ; Wed, 25 Oct 2017 09:29:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E670960CD3 for ; Wed, 25 Oct 2017 09:29:03 +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 66BFAE0E85 for ; Wed, 25 Oct 2017 09:29:03 +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 13BD4212F9 for ; Wed, 25 Oct 2017 09:29:01 +0000 (UTC) Date: Wed, 25 Oct 2017 09:29:01 +0000 (UTC) From: "Jepson (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4319) Zookeeper connection should be closed immediately MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 Oct 2017 09:29:08 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jepson updated PHOENIX-4319: ---------------------------- Description: *Code:* {code:java} val zkUrl = "192.168.100.40,192.168.100.41,192.168.100.42:2181:/hbase" val configuration = new Configuration() configuration.set("hbase.zookeeper.quorum",zkUrl) val spark = SparkSession .builder() .appName("SparkPhoenixTest1") .master("local[2]") .getOrCreate() for( a <- 1 to 100){ val wms_doDF = spark.sqlContext.phoenixTableAsDataFrame( "DW.wms_do", Array("WAREHOUSE_NO", "DO_NO"), predicate = Some( """ |MOD_TIME >= TO_DATE('begin_day', 'yyyy-MM-dd') |and MOD_TIME < TO_DATE('end_day', 'yyyy-MM-dd') """.stripMargin.replaceAll("begin_day", "2017-10-01").replaceAll("end_day", "2017-10-25")), conf = configuration ) wms_doDF.show(100) } {code} *Description:* The connection to zookeeper is not getting closed,which causes the maximum number of client connections to be reached from a host( we have maxClientCnxns as 500 in zookeeper config). !https://github.com/Hackeruncle/Images/blob/master/zookeeper%20connections.png! *Reference:* [https://community.hortonworks.com/questions/116832/hbase-zookeeper-connections-not-getting-closed.html] was: *Code:* {code:java} val zkUrl = "192.168.100.40,192.168.100.41,192.168.100.42:2181:/hbase" val configuration = new Configuration() configuration.set("hbase.zookeeper.quorum",zkUrl) val spark = SparkSession .builder() .appName("SparkPhoenixTest1") .master("local[2]") .getOrCreate() for( a <- 1 to 100){ val wms_doDF = spark.sqlContext.phoenixTableAsDataFrame( "DW.wms_do", Array("WAREHOUSE_NO", "DO_NO"), predicate = Some( """ |MOD_TIME >= TO_DATE('begin_day', 'yyyy-MM-dd') |and MOD_TIME < TO_DATE('end_day', 'yyyy-MM-dd') """.stripMargin.replaceAll("begin_day", "2017-10-01").replaceAll("end_day", "2017-10-25")), conf = configuration ) wms_doDF.show(100) } {code} *Description:* The connection to zookeeper is not getting closed,which causes the maximum number of client connections to be reached from a host( we have maxClientCnxns as 500 in zookeeper config). !zookeeper connections|https://github.com/Hackeruncle/Images/blob/master/zookeeper%20connections.png! *Reference:* [https://community.hortonworks.com/questions/116832/hbase-zookeeper-connections-not-getting-closed.html] > Zookeeper connection should be closed immediately > ------------------------------------------------- > > Key: PHOENIX-4319 > URL: https://issues.apache.org/jira/browse/PHOENIX-4319 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.10.0 > Environment: phoenix4.10 hbase1.2.0 > Reporter: Jepson > Labels: patch > Original Estimate: 48h > Remaining Estimate: 48h > > *Code:* > {code:java} > val zkUrl = "192.168.100.40,192.168.100.41,192.168.100.42:2181:/hbase" > val configuration = new Configuration() > configuration.set("hbase.zookeeper.quorum",zkUrl) > val spark = SparkSession > .builder() > .appName("SparkPhoenixTest1") > .master("local[2]") > .getOrCreate() > for( a <- 1 to 100){ > val wms_doDF = spark.sqlContext.phoenixTableAsDataFrame( > "DW.wms_do", > Array("WAREHOUSE_NO", "DO_NO"), > predicate = Some( > """ > |MOD_TIME >= TO_DATE('begin_day', 'yyyy-MM-dd') > |and MOD_TIME < TO_DATE('end_day', 'yyyy-MM-dd') > """.stripMargin.replaceAll("begin_day", "2017-10-01").replaceAll("end_day", "2017-10-25")), > conf = configuration > ) > wms_doDF.show(100) > } > {code} > *Description:* > The connection to zookeeper is not getting closed,which causes the maximum number of client connections to be reached from a host( we have maxClientCnxns as 500 in zookeeper config). > !https://github.com/Hackeruncle/Images/blob/master/zookeeper%20connections.png! > *Reference:* > [https://community.hortonworks.com/questions/116832/hbase-zookeeper-connections-not-getting-closed.html] -- This message was sent by Atlassian JIRA (v6.4.14#64029)