ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [22/50] [abbrv] ambari git commit: AMBARI-14640. Cluster deployment fails due to undeclared hadoop_conf_dir when Hadoop components not installed (alejandro)
Date Fri, 15 Jan 2016 17:33:46 GMT
AMBARI-14640. Cluster deployment fails due to undeclared hadoop_conf_dir when Hadoop components
not installed (alejandro)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a7af2524
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a7af2524
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a7af2524

Branch: refs/heads/branch-dev-patch-upgrade
Commit: a7af25247de32b2d337ef92c1e27c85c274ce1cc
Parents: 6fdfcc0
Author: Alejandro Fernandez <afernandez@hortonworks.com>
Authored: Tue Jan 12 13:33:23 2016 -0800
Committer: Nate Cole <ncole@hortonworks.com>
Committed: Thu Jan 14 11:43:26 2016 -0500

----------------------------------------------------------------------
 .../2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a7af2524/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
index e7a3a82..b957bd0 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
@@ -50,10 +50,10 @@ def setup_config():
   Logger.info("FS Type: {0}".format(params.dfs_type))
 
   is_hadoop_conf_dir_present = False
-  if params.hadoop_conf_dir is not None and os.path.exists(params.hadoop_conf_dir):
+  if hasattr(params, "hadoop_conf_dir") and params.hadoop_conf_dir is not None and os.path.exists(params.hadoop_conf_dir):
     is_hadoop_conf_dir_present = True
   else:
-    Logger.warning("Parameter hadoop_conf_dir is missing or directory does not exist.")
+    Logger.warning("Parameter hadoop_conf_dir is missing or directory does not exist. This
is expected if this host does not have any Hadoop components.")
 
   if is_hadoop_conf_dir_present and (params.has_namenode or stackversion.find('Gluster')
>= 0 or params.dfs_type == 'HCFS'):
     # create core-site only if the hadoop config diretory exists


Mime
View raw message