You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2018/09/13 12:23:43 UTC
[ambari] branch branch-2.7 updated: AMBARI-24623. hdfsResource
fails to using nameservices for filesystems which does not support that
(aonishuk)
This is an automated email from the ASF dual-hosted git repository.
aonishuk pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new a5736fa AMBARI-24623. hdfsResource fails to using nameservices for filesystems which does not support that (aonishuk)
a5736fa is described below
commit a5736fa9719519824af6c003e920603f539c7db0
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Wed Sep 12 11:23:12 2018 +0300
AMBARI-24623. hdfsResource fails to using nameservices for filesystems which does not support that (aonishuk)
---
.../python/resource_management/libraries/providers/hdfs_resource.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
index 3c772dd..301f2b8 100644
--- a/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
+++ b/ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
@@ -88,7 +88,7 @@ class HdfsResourceJar:
nameservices = main_resource.resource.nameservices
# non-federated cluster
- if not nameservices:
+ if not nameservices or len(nameservices) < 2:
self.action_delayed_for_nameservice(None, action_name, main_resource)
else:
default_fs_protocol = urlparse(main_resource.resource.default_fs).scheme