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 EB2F118AF3 for ; Mon, 7 Dec 2015 23:20:47 +0000 (UTC) Received: (qmail 1125 invoked by uid 500); 7 Dec 2015 23:20:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 1054 invoked by uid 500); 7 Dec 2015 23:20: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 776 invoked by uid 99); 7 Dec 2015 23:20:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 23:20:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0A67D2C1F62 for ; Mon, 7 Dec 2015 23:20:11 +0000 (UTC) Date: Mon, 7 Dec 2015 23:20:11 +0000 (UTC) From: "Jayush Luniya (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14241) RU on non-HDFS filesystems, native commands like hdfs dfsadmin fail 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-14241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045972#comment-15045972 ] Jayush Luniya commented on AMBARI-14241: ---------------------------------------- Trunk: commit 80ffae6b1183f957a2277c5a10b58809631da089 Author: Jayush Luniya Date: Mon Dec 7 15:17:20 2015 -0800 AMBARI-14241: RU on non-HDFS filesystems, native commands like hdfs dfsadmin fail (jluniya) > RU on non-HDFS filesystems, native commands like hdfs dfsadmin fail > ------------------------------------------------------------------- > > Key: AMBARI-14241 > URL: https://issues.apache.org/jira/browse/AMBARI-14241 > Project: Ambari > Issue Type: Bug > Components: stacks > Affects Versions: 2.2.0 > Reporter: Jayush Luniya > Assignee: Jayush Luniya > Priority: Blocker > Fix For: 2.2.0 > > Attachments: AMBARI-14241.patch > > > *Issue* > {code} > 2015-12-02 19:00:50,698 - Execute['/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -rollingUpgrade prepare'] {'logoutput': True, 'user': 'hdfs'} > rollingUpgrade: FileSystem wasb://hostname is not an HDFS file system > Usage: hdfs dfsadmin [-rollingUpgrade []] > 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 175, in prepare_rolling_upgrade > namenode_upgrade.prepare_rolling_upgrade(hfds_binary) > File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 240, in prepare_rolling_upgrade > logoutput=True) > 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/environment.py", line 158, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run > tries=self.resource.tries, try_sleep=self.resource.try_sleep) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner > result = function(command, **kwargs) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call > tries=tries, try_sleep=try_sleep) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper > result = _call(command, **kwargs_copy) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -rollingUpgrade prepare' returned 255. rollingUpgrade: FileSystem wasb://hostname is not an HDFS file system > Usage: hdfs dfsadmin [-rollingUpgrade []] > {code} > *Fix:* > To fix this issue we need to explicitly pass "-fs" argument to the all hdfs dfsadmin commands in the files: journalnode_upgrade.py, namenode_upgrade.py, datanode_upgrade.py, namenode.py > Example: hdfs dfsadmin -fs hdfs://mycluster -rollingUpgrade prepare -- This message was sent by Atlassian JIRA (v6.3.4#6332)