ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: AMBARI-7784 Ganglia Monitor install fail on HDP-2.2 (dsen)
Date Wed, 15 Oct 2014 14:07:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 cf62427dd -> 36b2c0cd6


AMBARI-7784 Ganglia Monitor install fail on HDP-2.2 (dsen)


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

Branch: refs/heads/branch-1.7.0
Commit: 36b2c0cd66e4925b6365fdd8f78243f23bb96c74
Parents: cf62427
Author: Dmytro Sen <dsen@hortonworks.com>
Authored: Wed Oct 15 17:06:58 2014 +0300
Committer: Dmytro Sen <dsen@hortonworks.com>
Committed: Wed Oct 15 17:06:58 2014 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/36b2c0cd/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 9f9345d..c8019d1 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
@@ -22,7 +22,8 @@ from resource_management import *
 def setup_hdp_install_directory():
   import params
   if params.rpm_version:
-    Execute(format('ambari-python-wrap /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select
versions | grep ^{rpm_version}- | tail -1`')
+    Execute(format('ambari-python-wrap /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select
versions | grep ^{rpm_version}- | tail -1`'),
+            only_if=format('ls -d /usr/hdp/{rpm_version}-*')
     )
 
 def setup_config():
@@ -34,4 +35,4 @@ def setup_config():
               configuration_attributes=params.config['configuration_attributes']['core-site'],
               owner=params.hdfs_user,
               group=params.user_group
-    )
\ No newline at end of file
+    )


Mime
View raw message