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 B11F018C54 for ; Sat, 26 Sep 2015 21:05:04 +0000 (UTC) Received: (qmail 50536 invoked by uid 500); 26 Sep 2015 21:05:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50502 invoked by uid 500); 26 Sep 2015 21:05: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 50487 invoked by uid 99); 26 Sep 2015 21:05:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2015 21:05:04 +0000 Date: Sat, 26 Sep 2015 21:05:04 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13251) RU - HDFS_Client restart and hdp-select causes dfs_data_dir_mount.hist to be lost 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-13251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-13251: ----------------------------------------- Attachment: AMBARI-13251.patch > RU - HDFS_Client restart and hdp-select causes dfs_data_dir_mount.hist to be lost > --------------------------------------------------------------------------------- > > Key: AMBARI-13251 > URL: https://issues.apache.org/jira/browse/AMBARI-13251 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.2 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Priority: Blocker > Fix For: 2.1.2 > > Attachments: AMBARI-13251.patch > > > During the Clients group of RU, restarting hdfs_client changes changes the symlink /usr/hdp/current/hadoop-client/ from the old version to the new version. > Because the Data Dir Mount History file is stored at /etc/hadoop/conf/dfs_data_dir_mount.hist and > /etc/hadoop/conf symlinks to /usr/hdp/current/hadoop-client/conf > it means that the file must be copied to the new location. > Multiple clients (HDFS, HBase, Hive, YARN, MapReduce, Pig, Slider, Tez) actually end up calling > {code} > hdp_select.select("hadoop-client", params.version) > {code} > that changes the symlink, so the first one to be ran during RU must copy the file. If DataNode is present, it means that HDFS Client is guaranteed to be there, and from all of those clients it is the first one in the Upgrade Pack. > During a Rolling Downgrade, the file should already exist in the previous version, and the file is only written to when DataNode is restarted, so we are ok. -- This message was sent by Atlassian JIRA (v6.3.4#6332)