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 ACD3018F7D for ; Fri, 11 Dec 2015 23:20:09 +0000 (UTC) Received: (qmail 54894 invoked by uid 500); 11 Dec 2015 23:20:09 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 54860 invoked by uid 500); 11 Dec 2015 23:20:09 -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 54844 invoked by uid 99); 11 Dec 2015 23:20:09 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 23:20:09 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 225F62935CE; Fri, 11 Dec 2015 23:20:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8301876660592758018==" MIME-Version: 1.0 Subject: Re: Review Request 41284: AMBARI-14350 : AMS does not start up after cluster redeploy because of invalid ownership of its directories. From: "Sumit Mohanty" To: "Sid Wagle" , "Sumit Mohanty" , "Dmytro Sen" Cc: "Aravindan Vijayan" , "Ambari" Date: Fri, 11 Dec 2015 23:20:09 -0000 Message-ID: <20151211232009.1645.71520@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Sumit Mohanty" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41284/ X-Sender: "Sumit Mohanty" References: <20151211231711.1643.56778@reviews.apache.org> In-Reply-To: <20151211231711.1643.56778@reviews.apache.org> Reply-To: "Sumit Mohanty" X-ReviewRequest-Repository: ambari --===============8301876660592758018== 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/41284/#review110037 ----------------------------------------------------------- Ship it! Ship It! - Sumit Mohanty On Dec. 11, 2015, 11:17 p.m., Aravindan Vijayan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41284/ > ----------------------------------------------------------- > > (Updated Dec. 11, 2015, 11:17 p.m.) > > > Review request for Ambari, Dmytro Sen, Sumit Mohanty, and Sid Wagle. > > > Bugs: AMBARI-14350 > https://issues.apache.org/jira/browse/AMBARI-14350 > > > Repository: ambari > > > Description > ------- > > PROBLEM > Steps: > Deployed cluster via blueprints. > Reset cluster (reset ambari-server, host cleanup). > Deployed cluster via UI. > Result: Ambari Metrics Service go down. > > BUG > AMS scripts do not change the ownership of certain directories to AMS user if they exist already. > > FIX > Adding an explicit chown to take ownership of the required directories (collector conf, collector checkpoint, HBase tmp, HBase conf, HBase root) > > > Diffs > ----- > > ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py 733fcc0 > ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/hbase.py 92d2bc4 > ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_collector.py e884367 > > Diff: https://reviews.apache.org/r/41284/diff/ > > > Testing > ------- > > Manual Testing done. Ambari server and agent unit tests pass. > > > Thanks, > > Aravindan Vijayan > > --===============8301876660592758018==--