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:15 UTC
[ambari] branch trunk 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 trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3edb35c AMBARI-24623. hdfsResource fails to using nameservices for filesystems which does not support that (aonishuk)
3edb35c is described below
commit 3edb35c368912eaaeb547e36e4672b4862777cfd
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Wed Sep 12 11:23:03 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 468c3cf..8f56539 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