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 7F4B2200BE2 for ; Thu, 15 Dec 2016 19:11:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7DDA3160B15; Thu, 15 Dec 2016 18:11:27 +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 C5DE3160B13 for ; Thu, 15 Dec 2016 19:11:26 +0100 (CET) Received: (qmail 7403 invoked by uid 500); 15 Dec 2016 18:11:26 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 7392 invoked by uid 99); 15 Dec 2016 18:11:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 18:11:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E2539E7DFC; Thu, 15 Dec 2016 18:11:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: avijayan@apache.org To: commits@ambari.apache.org Message-Id: <96201323a2a34badaac6e35bffe963b7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-19204 : Metrics monitor start failed after deleting AMS and reinstalling with different user. (avijayan) Date: Thu, 15 Dec 2016 18:11:25 +0000 (UTC) archived-at: Thu, 15 Dec 2016 18:11:27 -0000 Repository: ambari Updated Branches: refs/heads/trunk c74df6f57 -> 7bf3a098c AMBARI-19204 : Metrics monitor start failed after deleting AMS and reinstalling with different user. (avijayan) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7bf3a098 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7bf3a098 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7bf3a098 Branch: refs/heads/trunk Commit: 7bf3a098cb2e38692751fd51b5ebf7470b5c9cb9 Parents: c74df6f Author: Aravindan Vijayan Authored: Thu Dec 15 10:11:20 2016 -0800 Committer: Aravindan Vijayan Committed: Thu Dec 15 10:11:20 2016 -0800 ---------------------------------------------------------------------- .../common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7bf3a098/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py index 1795227..a766bad 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py @@ -366,6 +366,9 @@ def ams(name=None, action=None): create_parents = True ) + Execute(format("{sudo} chown -R {ams_user}:{user_group} {ams_monitor_log_dir}") + ) + Directory(params.ams_monitor_pid_dir, owner=params.ams_user, group=params.user_group,