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 6771A18AEA for ; Fri, 27 Nov 2015 14:40:11 +0000 (UTC) Received: (qmail 86137 invoked by uid 500); 27 Nov 2015 14:40:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 86091 invoked by uid 500); 27 Nov 2015 14:40:11 -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 86056 invoked by uid 99); 27 Nov 2015 14:40:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2015 14:40:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F30A72C044E for ; Fri, 27 Nov 2015 14:40:10 +0000 (UTC) Date: Fri, 27 Nov 2015 14:40:10 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14100) RU and EU upgrade failed on first step 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-14100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Lysnichenko updated AMBARI-14100: ---------------------------------------- Fix Version/s: 2.1.3 > RU and EU upgrade failed on first step > -------------------------------------- > > Key: AMBARI-14100 > URL: https://issues.apache.org/jira/browse/AMBARI-14100 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.3 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Fix For: 2.1.3 > > Attachments: AMBARI-14100.patch > > > Rolling Upgrade and Express Upgrade failed on first step. > {code} > 2015-11-26 16:59:09,618 - Task. Type: EXECUTE, Script: scripts/namenode.py - Function: prepare_rolling_upgrade > 2015-11-26 16:59:09,995 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.4.0-3335 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} > 2015-11-26 16:59:10,057 - call returned (1, '/etc/hadoop/2.3.4.0-3335/0 exist already', '') > 2015-11-26 16:59:10,057 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.4.0-3335 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} > 2015-11-26 16:59:10,114 - checked_call returned (0, '/usr/hdp/2.3.4.0-3335/hadoop/conf -> /etc/hadoop/2.3.4.0-3335/0') > 2015-11-26 16:59:10,115 - For package : hadoop, DIRS = [{'current_dir': '/usr/hdp/current/hadoop-client/conf', 'conf_dir': '/etc/hadoop/conf'}] > 2015-11-26 16:59:10,115 - For package : hadoop, Source dir: /etc/hadoop/conf, Dest dir: /usr/hdp/current/hadoop-client/conf > 2015-11-26 16:59:10,115 - Normalized Conf Dir : /etc/hadoop/conf, Normalized Current Dir : /etc/hadoop/2.3.0.0-2557/0 > 2015-11-26 16:59:10,115 - /etc/hadoop/conf exists and points to incorrect path /usr/hdp/current/hadoop-client/conf > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 432, in > NameNode().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 217, in execute > method(env) > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 174, in prepare_rolling_upgrade > hfds_binary = self.get_hdfs_binary() > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 77, in get_hdfs_binary > import params > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params.py", line 25, in > from params_linux import * > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py", line 20, in > import status_params > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/status_params.py", line 53, in > hadoop_conf_dir = conf_select.get_hadoop_conf_dir() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 316, in get_hadoop_conf_dir > select(stack_name, "hadoop", stack_version) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 270, in select > os.remove(normalized_conf_dir) > OSError: [Errno 13] Permission denied: '/etc/hadoop/conf' > Error: [Errno 13] Permission denied: '/etc/hadoop/conf' > {code} > The cause of the bug is that code for AMBARI-14052 does not work with non-root agent (exactly, os.remove() / os.symlink() calls should be replaced by RMF framework usage) -- This message was sent by Atlassian JIRA (v6.3.4#6332)