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 08D6C18C75 for ; Tue, 7 Jul 2015 19:44:06 +0000 (UTC) Received: (qmail 3193 invoked by uid 500); 7 Jul 2015 19:44:05 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 3136 invoked by uid 500); 7 Jul 2015 19:44:05 -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 2805 invoked by uid 99); 7 Jul 2015 19:44:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 19:44:05 +0000 Date: Tue, 7 Jul 2015 19:44:05 +0000 (UTC) From: "Srimanth Gunturi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-12280) HiveServer2 upgrade/downgrade should deregister old server after new one is started MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-12280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Srimanth Gunturi updated AMBARI-12280: -------------------------------------- Attachment: AMBARI-12280.patch > HiveServer2 upgrade/downgrade should deregister old server after new one is started > ----------------------------------------------------------------------------------- > > Key: AMBARI-12280 > URL: https://issues.apache.org/jira/browse/AMBARI-12280 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.0 > Reporter: Srimanth Gunturi > Assignee: Srimanth Gunturi > Priority: Critical > Fix For: 2.1.0 > > Attachments: AMBARI-12280.patch > > > During upgrade/downgrade, the deregister is happening before the new HS2 is started. This can lead to a case where there is no HS2 up and running. The order needs to be fixed, to first start target version of HS2 and then do the deregister. > 1. Switch hive-server2 to the new software version, start the new process, and deregister the old version of hive-server2: > Since the current version would have changed before hive version is obtained for deregister command, the version should be obtained using the HDP versioned path. > /usr/hdp/$HDP_VERSION/hive/bin/hive --version > It will be safer to use the full path to hive for this, instead of relying on the $PATH variable setting. -- This message was sent by Atlassian JIRA (v6.3.4#6332)