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 0F6F6200C8C for ; Tue, 6 Jun 2017 12:50:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0DF51160BC6; Tue, 6 Jun 2017 10:50:22 +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 54596160BC3 for ; Tue, 6 Jun 2017 12:50:21 +0200 (CEST) Received: (qmail 19511 invoked by uid 500); 6 Jun 2017 10:50:20 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 19502 invoked by uid 99); 6 Jun 2017 10:50:20 -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; Tue, 06 Jun 2017 10:50:20 +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 0BC17CF9E8 for ; Tue, 6 Jun 2017 10:50:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 kL9izu_zgbtk for ; Tue, 6 Jun 2017 10:50:19 +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 1B11260EE4 for ; Tue, 6 Jun 2017 10:50:19 +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 5F698E0280 for ; Tue, 6 Jun 2017 10:50:18 +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 137D221E0B for ; Tue, 6 Jun 2017 10:50:18 +0000 (UTC) Date: Tue, 6 Jun 2017 10:50:18 +0000 (UTC) From: "Hadoop QA (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-21182) Agent Host Disk Usage Alert Hardcodes the Stack Directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Jun 2017 10:50:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-21182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038598#comment-16038598 ] Hadoop QA commented on AMBARI-21182: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12871562/AMBARI-21182.patch against trunk revision . {color:red}-1 patch{color}. Top-level [trunk compilation|https://builds.apache.org/job/Ambari-trunk-test-patch/11631//artifact/patch-work/trunkJavacWarnings.txt] may be broken. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/11631//console This message is automatically generated. > Agent Host Disk Usage Alert Hardcodes the Stack Directory > --------------------------------------------------------- > > Key: AMBARI-21182 > URL: https://issues.apache.org/jira/browse/AMBARI-21182 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.5.2 > > Attachments: AMBARI-21182.patch > > > The Host Disk Usage alert currently hard codes the stack location directly > into the script: > > > > # the location where HDP installs components when using HDP 2.2+ > STACK_HOME_DIR = "/usr/hdp" > # the location where HDP installs components when using HDP 2.0 to 2.1 > STACK_HOME_LEGACY_DIR = "/usr/lib" > # determine the location of HDP home > stack_home = None > if os.path.isdir(STACK_HOME_DIR): > stack_home = STACK_HOME_DIR > elif os.path.isdir(STACK_HOME_LEGACY_DIR): > stack_home = STACK_HOME_LEGACY_DIR > > On clusters where a different stack is installed (such as `/usr/hdf`, the > above logic incorrectly checks the `STACK_HOME_LEGACY_DIR`. > * The 2.0 and 2.1 code paths should be removed since they are not supported anymore. > * We should parameterize STACK_HOME_DIR (or even better, use the stack features JSON structure) to determine the home location to check. -- This message was sent by Atlassian JIRA (v6.3.15#6346)