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 B9E4610F82 for ; Thu, 20 Mar 2014 16:37:35 +0000 (UTC) Received: (qmail 51102 invoked by uid 500); 20 Mar 2014 16:37:35 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50985 invoked by uid 500); 20 Mar 2014 16:37:34 -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 50952 invoked by uid 99); 20 Mar 2014 16:37:33 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 16:37:33 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 47AFC1D553F; Thu, 20 Mar 2014 16:37:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7099515269597605248==" MIME-Version: 1.0 Subject: Re: Review Request 19420: log4j configs to be applied after Ambari upgrade From: "Dmytro Sen" To: "Myroslav Papirkovskyy" , "Sid Wagle" Cc: "Sumit Mohanty" , "Dmytro Sen" , "Ambari" Date: Thu, 20 Mar 2014 16:37:30 -0000 Message-ID: <20140320163730.6335.63746@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Dmytro Sen" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/19420/ X-Sender: "Dmytro Sen" References: <20140319205029.6590.95740@reviews.apache.org> In-Reply-To: <20140319205029.6590.95740@reviews.apache.org> Reply-To: "Dmytro Sen" X-ReviewRequest-Repository: ambari --===============7099515269597605248== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On March 19, 2014, 8:50 p.m., Sumit Mohanty wrote: > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java, line 719 > > > > > > Why don't we hard code the types for which clusterconfigmapping entries need to be created? > > > > If you run upgrade twice what will happen? > > - add missing config will skip the configs and this is expected > > - will this mapping query also skip adding clusterconfigmapping entries? The new patch correctly handles multiple run of "ambari-server upgrade" command. - Dmytro ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19420/#review37794 ----------------------------------------------------------- On March 20, 2014, 4:22 p.m., Dmytro Sen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19420/ > ----------------------------------------------------------- > > (Updated March 20, 2014, 4:22 p.m.) > > > Review request for Ambari, Myroslav Papirkovskyy and Sid Wagle. > > > Bugs: AMBARI-5147 > https://issues.apache.org/jira/browse/AMBARI-5147 > > > Repository: ambari > > > Description > ------- > > As a part of ambari upgrade, customized log4j properties for HDP services must be imported into *-log4j configs(hdfs-log4j, hbase-log4j, etc.). > Proposals: > 1. "ambari-server upgrade" command runs separate java software, which connects to the Ambari DB and creates required *-log4j configs. Admin should provide all log4j.properties files, for instance, copy them to predefined directory on ambari-server node. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java b26091a > ambari-server/src/main/java/org/apache/ambari/server/upgrade/StackUpgradeUtil.java 55697dc > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog150.java 3c1ad47 > ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java af2b247 > ambari-server/src/test/resources/stacks/HDP/1.3.4/services/HDFS/configuration/hdfs-log4j.xml PRE-CREATION > ambari-server/src/test/resources/stacks/HDP/1.3.4/services/HDFS/metainfo.xml 009acae > > Diff: https://reviews.apache.org/r/19420/diff/ > > > Testing > ------- > > > Thanks, > > Dmytro Sen > > --===============7099515269597605248==--