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 5F7AA18692 for ; Fri, 23 Oct 2015 21:20:29 +0000 (UTC) Received: (qmail 70947 invoked by uid 500); 23 Oct 2015 21:20:28 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 70718 invoked by uid 500); 23 Oct 2015 21:20: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 70513 invoked by uid 99); 23 Oct 2015 21:20:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2015 21:20:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2F6402C1F5E for ; Fri, 23 Oct 2015 21:20:28 +0000 (UTC) Date: Fri, 23 Oct 2015 21:20:28 +0000 (UTC) From: "Alejandro Fernandez (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13548) Stop-and-Start Upgrade: NameNode restart fails since HdfsResource only_if condition not working, change title of Groups MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13548?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Fernandez updated AMBARI-13548: ----------------------------------------- Attachment: AMBARI-13548.trunk.patch AMBARI-13548.branch-2.1.patch > Stop-and-Start Upgrade: NameNode restart fails since HdfsResource only_if= condition not working, change title of Groups > -------------------------------------------------------------------------= ---------------------------------------------- > > Key: AMBARI-13548 > URL: https://issues.apache.org/jira/browse/AMBARI-13548 > Project: Ambari > Issue Type: Story > Components: ambari-server > Affects Versions: 2.2.0, 2.1.3 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Fix For: 2.2.0, 2.1.3 > > Attachments: AMBARI-13548.branch-2.1.patch, AMBARI-13548.trunk.pa= tch > > > Get following error during express upgrade. > {code} > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/packag= e/scripts/namenode.py", line 401, in > NameNode().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/sc= ript/script.py", line 223, in execute > method(env) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/sc= ript/script.py", line 506, in restart > self.start(env, upgrade_type=3Dupgrade_type) > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/packag= e/scripts/namenode.py", line 99, in start > namenode(action=3D"start", hdfs_binary=3Dhdfs_binary, upgrade_type=3D= upgrade_type, env=3Denv) > File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py= ", line 89, in thunk > return fn(*args, **kwargs) > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/packag= e/scripts/hdfs_namenode.py", line 185, in namenode > create_hdfs_directories(is_active_namenode_cmd) > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/packag= e/scripts/hdfs_namenode.py", line 248, in create_hdfs_directories > only_if=3Dcheck > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py= ", line 154, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environ= ment.py", line 154, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environ= ment.py", line 120, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 396, in action_create_on_execute > self.action_delayed("create") > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 393, in action_delayed > self.get_hdfs_resource_executor().action_delayed(action_name, self) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 248, in action_delayed > self._create_resource() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 258, in _create_resource > self._create_directory(self.main_resource.resource.target) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 282, in _create_directory > self.util.run_command(target, 'MKDIRS', method=3D'PUT') > File "/usr/lib/python2.6/site-packages/resource_management/libraries/pr= oviders/hdfs_resource.py", line 203, in run_command > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%= {http_code}' -X PUT 'http://jay-trunk-1.c.pramod-thangali.internal:50070/we= bhdfs/v1/tmp?op=3DMKDIRS&user.name=3Dhdfs'' returned status_code=3D403.=20 > { > "RemoteException": { > "exception": "SafeModeException",=20 > "javaClassName": "org.apache.hadoop.hdfs.server.namenode.SafeModeExce= ption",=20 > "message": "Cannot create directory /tmp. Name node is in safe mode.\= nThe reported blocks 0 needs additional 7 blocks to reach the threshold 1.0= 000 of total blocks 6.\nThe number of live datanodes 0 has reached the mini= mum number 0. Safe mode will be turned off automatically once the threshold= s have been reached." > } > } > {code} > It appears that the HdfsResource call no longer skips the task when the o= nly_if condition is set to None. > For the NonRolling Upgrade Packs, change the title of the groups, > Rename the high-level and low-level to be this=E2=80=A6 > - Stop Components for High-Level Services > - Stop Components for Core Services (HDFS, HBase, ZooKeeper and Ranger) > Rename these others=E2=80=A6 > - Zookeeper =3D> ZooKeeper > - MR and YARN =3D> YARN and MapReduce2=20 > - Take Backups =3D>Perform Backups > - Update Desired Stack Id =3D> Update Target Stack -- This message was sent by Atlassian JIRA (v6.3.4#6332)