This is an automated email from the ASF dual-hosted git repository.

echekanskiy 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 73e7362  AMBARI-23539. Unable to install stacks without hdfs-site 
config (echekanskiy)
73e7362 is described below

commit 73e7362ce6bf0eb58b27a06a998e625b1e85ac55
Author: Eugene Chekanskiy <echekans...@gmail.com>
AuthorDate: Wed Apr 11 13:57:51 2018 +0300

    AMBARI-23539. Unable to install stacks without hdfs-site config 
(echekanskiy)
---
 .../src/main/resources/stack-hooks/before-ANY/scripts/params.py        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py 
b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
index 3fcac39..6f6cd39 100644
--- a/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
+++ b/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/params.py
@@ -207,7 +207,8 @@ dfs_ha_nameservices = 
default('/configurations/hdfs-site/dfs.internal.nameservic
 if dfs_ha_nameservices is None:
   dfs_ha_nameservices = default('/configurations/hdfs-site/dfs.nameservices', 
None)
 
-dfs_ha_namenode_ids_all_ns = get_properties_for_all_nameservices(hdfs_site, 
'dfs.ha.namenodes')
+# on stacks without any filesystem there is no hdfs-site
+dfs_ha_namenode_ids_all_ns = get_properties_for_all_nameservices(hdfs_site, 
'dfs.ha.namenodes') if 'hdfs-site' in config['configurations'] else {}
 dfs_ha_automatic_failover_enabled = 
default("/configurations/hdfs-site/dfs.ha.automatic-failover.enabled", False)
 
 # Values for the current Host

-- 
To stop receiving notification emails like this one, please contact
echekans...@apache.org.

Reply via email to