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 B3BAC17659 for ; Fri, 17 Apr 2015 17:59:50 +0000 (UTC) Received: (qmail 78007 invoked by uid 500); 17 Apr 2015 17:59:44 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 77974 invoked by uid 500); 17 Apr 2015 17:59:44 -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 77957 invoked by uid 99); 17 Apr 2015 17:59:44 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 17:59:44 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 0E65B1DB2D5; Fri, 17 Apr 2015 17:59:46 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8964636484840182010==" MIME-Version: 1.0 Subject: Re: Review Request 33311: Ambari Upgrade from 1.7.0 to 2.0.0 fails to restart ZK server due to missing symlink From: "Alejandro Fernandez" To: "Alejandro Fernandez" Cc: "Dmitro Lisnichenko" , "Ambari" Date: Fri, 17 Apr 2015 17:59:46 -0000 Message-ID: <20150417175946.4550.86097@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Alejandro Fernandez" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/33311/ X-Sender: "Alejandro Fernandez" References: <20150417143517.1422.54574@reviews.apache.org> In-Reply-To: <20150417143517.1422.54574@reviews.apache.org> Reply-To: "Alejandro Fernandez" X-ReviewRequest-Repository: ambari --===============8964636484840182010== 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/33311/#review80493 ----------------------------------------------------------- ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py Can you add a comment indicating why this was needed. Also, can this accept a parameter on whether configure() was called as part of a rolling restart so that we also check that rolling_restart is False. - Alejandro Fernandez On April 17, 2015, 2:35 p.m., Dmitro Lisnichenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/33311/ > ----------------------------------------------------------- > > (Updated April 17, 2015, 2:35 p.m.) > > > Review request for Ambari and Alejandro Fernandez. > > > Bugs: AMBARI-10566 > https://issues.apache.org/jira/browse/AMBARI-10566 > > > Repository: ambari > > > Description > ------- > > Ambari upgrade from 1.7.0 to 2.0.0 had problems on starting/restarting zookeeper server because /usr/hdp/current/zookeeper-server symlink was not found. The customer remedied the issue by calling "hdp-select set zookeeper-server 2.2.3.0-###" on all of the hosts, which created the symlink. > In Ambari 1.7.0, ZK server was started using the libs from ZK client, so as part of the Ambari Upgrade, we need to first call "hdp-select set zookeeper-server > {version} > " > It's possible that the either exactly one of start/restart command will handle this. Need to verify what the behavior is. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 2680851 > ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py a3136d3 > ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py 4bd94bc > ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py b2946f4 > ambari-server/src/test/python/stacks/2.0.6/ZOOKEEPER/test_zookeeper_server.py 61b3f40 > > Diff: https://reviews.apache.org/r/33311/diff/ > > > Testing > ------- > > [INFO] ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Ambari Views ...................................... SUCCESS [1.759s] > [INFO] Ambari Metrics Common ............................. SUCCESS [0.740s] > [INFO] Ambari Server ..................................... SUCCESS [37.253s] > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 40.428s > [INFO] Finished at: Fri Apr 17 17:34:36 EEST 2015 > [INFO] Final Memory: 41M/463M > [INFO] ------------------------------------------------------------------------ > > > Thanks, > > Dmitro Lisnichenko > > --===============8964636484840182010==--