[ 
https://issues.apache.org/jira/browse/AMBARI-14241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046172#comment-15046172
 ] 

Hudson commented on AMBARI-14241:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #3991 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/3991/])
AMBARI-14241: RU on non-HDFS filesystems, native commands like hdfs (jluniya: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=80ffae6b1183f957a2277c5a10b58809631da089])
* ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/datanode_upgrade.py
* ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/journalnode_upgrade.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
* 
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/nodemanager_upgrade.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/utils.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py
* 
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py


> 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 [<query|prepare|finalize>]]
> 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 <module>
>     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 [<query|prepare|finalize>]]
> {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)

Reply via email to