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 939FD173A6 for ; Mon, 21 Sep 2015 05:46:04 +0000 (UTC) Received: (qmail 25560 invoked by uid 500); 21 Sep 2015 05:46:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 25526 invoked by uid 500); 21 Sep 2015 05:46:04 -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 25292 invoked by uid 99); 21 Sep 2015 05:46:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2015 05:46:04 +0000 Date: Mon, 21 Sep 2015 05:46:04 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13164) RU: Knox to use versioned data dir starting in HDP 2.3.2.0 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-13164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-13164: ----------------------------------------- Fix Version/s: trunk > RU: Knox to use versioned data dir starting in HDP 2.3.2.0 > ---------------------------------------------------------- > > Key: AMBARI-13164 > URL: https://issues.apache.org/jira/browse/AMBARI-13164 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.2 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Fix For: 2.2.0, 2.1.2 > > Attachments: AMBARI-13164.branch-2.1.2.patch, AMBARI-13164.branch-2.1.patch, AMBARI-13164.trunk.patch > > > Starting in HDP 2.3.2.0, Knox will version its data directory. > HDP 2.3.2.0 is meant to support Debian & Ubuntu. > A customer installing HDP 2.3.2.0 would receive the following for knox: > /usr/hdp/current/knox/data is a symlink to /var/lib/knox/data_$ > {version} > Hence, all of the data directories in /var/lib/knox/ would be versioned. This is because the Debian installer fails if it tries to create the /var/lib/knox/data folder and it already exists (since it belongs to a previous version); further, you would get data loss if you tried to uninstall the newer version, since it would wipe out the folder that was used by the previous version. > So the problem doesn't arise on the initial install, but rather on installing an additional version for Rolling Upgrade. > This means that any customer planning to upgrade Knox must first upgrade Ambari to 2.1.2. > There are 3 scenarios: > 1. Ambari 2.1.2 with HDP 2.3.0.0: > Ambari must continue to use the non-versioned data directory. > 2. Ambari 2.1.2 with HDP 2.3.2.0: > A brand new install will use the versioned data directory out-of-the-box. > 3. Ambari 2.1.0 with HDP 2.3.0.0: > Technically, this allows registering bits for HDP 2.3.2.0 and performing an RU to it. However, because HDP 2.3.2.0 uses a versioned data dir, it means that any customer with Knox that plans to perform an RU must first upgrade Ambari to 2.1.2, which is equivalent to starting with case #1. > Because RU allows the following paths, > 2.3.0.0 (non-versioned data dir) -> 2.3.2.0 (versioned data dir) > 2.3.2.0 (versioned data dir) -> 2.3.3.- (versioned data dir, once it is available) > It means that it must always copy any contents from > previous_data_dir to /usr/hdp/{new-version}/knox/data > In the case of 2.3.0.0 -> 2.3.+, previous_data_dir is /var/lib/knox/data/ > In the case of 2.3.+ -> 2.3.+, previous_data_dir is /usr/hdp/{prev-version}/knox/data -- This message was sent by Atlassian JIRA (v6.3.4#6332)