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 88D26200BA3 for ; Thu, 20 Oct 2016 20:49:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 87A65160AE0; Thu, 20 Oct 2016 18:49:01 +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 F2F7C160AF2 for ; Thu, 20 Oct 2016 20:49:00 +0200 (CEST) Received: (qmail 4150 invoked by uid 500); 20 Oct 2016 18:49:00 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 4019 invoked by uid 99); 20 Oct 2016 18:49:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 18:48:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C5B372C0087 for ; Thu, 20 Oct 2016 18:48:59 +0000 (UTC) Date: Thu, 20 Oct 2016 18:48:59 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-5760) [ATSv2] Create HBase connection only if an app is publishing from NM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Oct 2016 18:49:01 -0000 [ https://issues.apache.org/jira/browse/YARN-5760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Varun Saxena updated YARN-5760: ------------------------------- Summary: [ATSv2] Create HBase connection only if an app is publishing from NM (was: [ATSv2] Create HBase connection only if an application is publishing from NM) > [ATSv2] Create HBase connection only if an app is publishing from NM > -------------------------------------------------------------------- > > Key: YARN-5760 > URL: https://issues.apache.org/jira/browse/YARN-5760 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver > Reporter: Varun Saxena > Assignee: Varun Saxena > > Irrespective of NM handling an app or not, we initialize HBaseTimelineWriterImpl in TimelineCollectorManager. > This in turn calls ConnectionFactory#createConnection to manage connections with HBase. > But it seems this opens up a connection with Zookeeper (i.e. as soon as NM starts up) instead of opening connection when atleast one app arrives for publishing and closing it if no apps are being published from this NM. > This leads to unnecessary connections to Zookeeper. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org