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/12/11 11:57:29 UTC
[ambari] branch trunk updated: AMBARI-25031. Infra cluster fails to
start if fs.defaultsFS is set to file:/// (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 e2f9318 AMBARI-25031. Infra cluster fails to start if fs.defaultsFS is set to file:/// (aonishuk)
e2f9318 is described below
commit e2f9318474d876252e606ac637fe2b2cd146a096
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Tue Dec 11 12:34:40 2018 +0200
AMBARI-25031. Infra cluster fails to start if fs.defaultsFS is set to file:/// (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 b6f0fc4..af6218a 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
@@ -687,7 +687,7 @@ class HdfsResourceProvider(Provider):
if self.has_core_configs:
path_protocol = urlparse(self.resource.target).scheme.lower()
- self.create_as_root = path_protocol == 'file' or self.default_protocol == 'file' and path_protocol == None
+ self.create_as_root = path_protocol == 'file' or self.default_protocol == 'file' and not path_protocol
# for protocols which are different that defaultFs webhdfs will not be able to create directories
# so for them fast-hdfs-resource.jar should be used