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 156E418DEB for ; Mon, 11 Jan 2016 18:26:00 +0000 (UTC) Received: (qmail 37828 invoked by uid 500); 11 Jan 2016 18:25:59 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 37763 invoked by uid 500); 11 Jan 2016 18:25:59 -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 37462 invoked by uid 99); 11 Jan 2016 18:25:58 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 18:25:58 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id D802D2805C4; Mon, 11 Jan 2016 18:25:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2622615253811711575==" MIME-Version: 1.0 Subject: Re: Review Request 42094: Install cluster failed as tried to write config when hadoop conf dir is missing From: "Nate Cole" To: "Sumit Mohanty" , "Srimanth Gunturi" , "Andrew Onischuk" , "Jayush Luniya" , "Jonathan Hurley" , "Nate Cole" , "Sid Wagle" Cc: "Alejandro Fernandez" , "Ambari" Date: Mon, 11 Jan 2016 18:25:57 -0000 Message-ID: <20160111182557.26793.47627@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Nate Cole" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/42094/ X-Sender: "Nate Cole" References: <20160109000105.1692.13515@reviews.apache.org> In-Reply-To: <20160109000105.1692.13515@reviews.apache.org> Reply-To: "Nate Cole" X-ReviewRequest-Repository: ambari --===============2622615253811711575== 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/42094/#review113811 ----------------------------------------------------------- Ship it! Ship It! - Nate Cole On Jan. 8, 2016, 7:01 p.m., Alejandro Fernandez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/42094/ > ----------------------------------------------------------- > > (Updated Jan. 8, 2016, 7:01 p.m.) > > > Review request for Ambari, Andrew Onischuk, Jonathan Hurley, Jayush Luniya, Nate Cole, Sumit Mohanty, Srimanth Gunturi, and Sid Wagle. > > > Bugs: AMBARI-14596 > https://issues.apache.org/jira/browse/AMBARI-14596 > > > Repository: ambari > > > Description > ------- > > Cluster installation failed on Accumulo Client because it was one of the first tasks scheduled and HDFS Client had not been installed yet, which installs the hadoop rpm and creates the /etc/hadoop/conf folder. > > If a host does not contain /etc/hadoop/conf, then we should not attempt to write config files to it during the after-install hooks. Once a component is installed that does contain the hadoop rpm, then it will be responsible for writing out the configs to it. > > Ambari 2.2.1.0-71 > HDP 2.4.0.0-47 > > ``` > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 38, in > AfterInstallHook().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute > method(env) > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 33, in hook > setup_config() > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 55, in setup_config > only_if=format("ls {hadoop_conf_dir}")) > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/xml_config.py", line 67, in action_create > encoding = self.resource.encoding > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 87, in action_create > raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname)) > resource_management.core.exceptions.Fail: Applying File['/usr/hdp/current/hadoop-client/conf/core-site.xml'] failed, parent directory /usr/hdp/current/hadoop-client/conf doesn't exist > ``` > > > Diffs > ----- > > ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py 98b7eb5 > > Diff: https://reviews.apache.org/r/42094/diff/ > > > Testing > ------- > > Verified on a new cluster installation. > > Python unit tests passed. > OK > ---------------------------------------------------------------------- > Total run:858 > Total errors:0 > Total failures:0 > OK > > > Thanks, > > Alejandro Fernandez > > --===============2622615253811711575==--