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 4FC97177A4 for ; Wed, 22 Jul 2015 20:57:31 +0000 (UTC) Received: (qmail 94016 invoked by uid 500); 22 Jul 2015 20:57:28 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 93979 invoked by uid 500); 22 Jul 2015 20:57:28 -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 93961 invoked by uid 99); 22 Jul 2015 20:57:27 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 20:57:27 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 0D546BEBEB; Wed, 22 Jul 2015 20:57:26 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5518366521027577915==" MIME-Version: 1.0 Subject: Re: Review Request 36665: RU - Use haadmin failover command instead of killing ZKFC during upgrade/downgrade From: "Alejandro Fernandez" To: "Nate Cole" , "Dmitro Lisnichenko" , "Srimanth Gunturi" , "Jonathan Hurley" Cc: "Ambari" , "Alejandro Fernandez" Date: Wed, 22 Jul 2015 20:57:26 -0000 Message-ID: <20150722205726.10542.45424@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Alejandro Fernandez" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36665/ X-Sender: "Alejandro Fernandez" References: <20150721231441.10541.77892@reviews.apache.org> In-Reply-To: <20150721231441.10541.77892@reviews.apache.org> Reply-To: "Alejandro Fernandez" X-ReviewRequest-Repository: ambari --===============5518366521027577915== 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/36665/ ----------------------------------------------------------- (Updated July 22, 2015, 8:57 p.m.) Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, Nate Cole, and Srimanth Gunturi. Bugs: AMBARI-12488 https://issues.apache.org/jira/browse/AMBARI-12488 Repository: ambari Description ------- Currently RU orchestration during upgrade/downgrade kills ZKFC on the active NameNode to initiate a failover to standby. We should instead use the failover command. E.g., su hdfs -c 'hdfs haadmin -failover nn1 nn2' Diffs ----- ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py 827c03d ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py b15bdc4 ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py 94d5b43 ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/utils.py a185b5f ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 5cc30b2 ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml ba16159 Diff: https://reviews.apache.org/r/36665/diff/ Testing ------- Tested this during an RU, in which the active NameNode did successfully initiate an ha failover by calling the command. Python unit tests passed. ----------------------------------------------------------------------- Total run:803 Total errors:0 Total failures:0 OK File Attachments (updated) ---------------- AMBARI-12488.additional.patch https://reviews.apache.org/media/uploaded/files/2015/07/22/82f72b0f-e7fb-47af-beef-6ff8a6aa0b8b__AMBARI-12488.additional.patch Thanks, Alejandro Fernandez --===============5518366521027577915==--