Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01029185EF for ; Wed, 17 Feb 2016 22:46:33 +0000 (UTC) Received: (qmail 73750 invoked by uid 500); 17 Feb 2016 22:46:32 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 73716 invoked by uid 500); 17 Feb 2016 22:46:32 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 73697 invoked by uid 99); 17 Feb 2016 22:46:32 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 22:46:32 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2CF6B2A6376; Wed, 17 Feb 2016 22:46:31 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7738732355199064021==" MIME-Version: 1.0 Subject: Re: Review Request 43663: PXF Service checks fails with timeout From: bhuvnesh chaudhary To: jun aoki , Richard Zang , Alejandro Fernandez , Jayush Luniya , Oleksandr Diachenko , Yusaku Sako Cc: bhuvnesh chaudhary , Matt , Ambari Date: Wed, 17 Feb 2016 22:46:31 -0000 Message-ID: <20160217224631.13178.58753@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: bhuvnesh chaudhary X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/43663/ X-Sender: bhuvnesh chaudhary References: <20160217190623.13178.90349@reviews.apache.org> In-Reply-To: <20160217190623.13178.90349@reviews.apache.org> X-ReviewBoard-Diff-For: ambari-server/src/main/resources/common-services/PXF/3.0.0/package/files/hbase-populate-data.sh X-ReviewBoard-Diff-For: ambari-server/src/main/resources/common-services/PXF/3.0.0/package/files/hbase-cleanup-data.sh Reply-To: bhuvnesh chaudhary X-ReviewRequest-Repository: ambari --===============7738732355199064021== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/43663/ ----------------------------------------------------------- (Updated Feb. 17, 2016, 10:46 p.m.) Review request for Ambari, Alejandro Fernandez, jun aoki, Jayush Luniya, Oleksandr Diachenko, Richard Zang, and Yusaku Sako. Changes ------- Applied feedback Bugs: AMBARI-15061 https://issues.apache.org/jira/browse/AMBARI-15061 Repository: ambari Description ------- During PXF service check, in order to execute hbase / hive command, we do initialize the shell everytime (hbase shell / hive) and then run the command. Initializing the shell takes time and we do that around 3-4 times which consumes majority of the time. We should initialize the shell once, and execute the commands using a file instead of doing individually. Diffs (updated) ----- ambari-server/src/main/resources/common-services/PXF/3.0.0/package/files/hbase-cleanup-data.sh PRE-CREATION ambari-server/src/main/resources/common-services/PXF/3.0.0/package/files/hbase-populate-data.sh PRE-CREATION ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/params.py b3e85e4 ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/pxf_constants.py 9d93a38 ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/service_check.py 21b7c5d Diff: https://reviews.apache.org/r/43663/diff/ Testing ------- yes. manual. Thanks, bhuvnesh chaudhary --===============7738732355199064021==--