ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject [1/2] ambari git commit: AMBARI-18739. Perf: Create Rolling and Express Upgrade Packs. Fix of concurrent cp (dlysnichenko)
Date Mon, 23 Jan 2017 14:47:02 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 f2ea75e9c -> 0a243ef8a
  refs/heads/trunk c32eb48ed -> 203e9fab7


AMBARI-18739. Perf: Create Rolling and Express Upgrade Packs. Fix of concurrent cp (dlysnichenko)


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

Branch: refs/heads/branch-2.5
Commit: 0a243ef8a1aa58a7ed0c54958a0db19b4be249aa
Parents: f2ea75e
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Mon Jan 23 16:45:54 2017 +0200
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Mon Jan 23 16:46:37 2017 +0200

----------------------------------------------------------------------
 .../stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0a243ef8/ambari-server/src/main/resources/stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py
b/ambari-server/src/main/resources/stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py
index 175f39a..0865ef5 100644
--- a/ambari-server/src/main/resources/stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py
+++ b/ambari-server/src/main/resources/stacks/PERF/1.0/hooks/before-INSTALL/scripts/hook.py
@@ -38,10 +38,10 @@ class BeforeInstallHook(Hook):
     conf_select = os.path.join(cache_dir, CONF_SELECT_PY)
     dist_select = os.path.join(cache_dir, DISTRO_SELECT_PY)
     if not os.path.exists(CONF_SELECT_DEST):
-      Execute("cp %s %s" % (conf_select, CONF_SELECT_DEST), user="root")
+      Execute("cp -f %s %s" % (conf_select, CONF_SELECT_DEST), user="root")
       Execute("chmod a+x %s" % (CONF_SELECT_DEST), user="root")
     if not os.path.exists(DISTRO_SELECT_DEST):
-      Execute("cp %s %s" % (dist_select, DISTRO_SELECT_DEST), user="root")
+      Execute("cp -f %s %s" % (dist_select, DISTRO_SELECT_DEST), user="root")
       Execute("chmod a+x %s" % (DISTRO_SELECT_DEST), user="root")
 
   def extrakt_var_from_pythonpath(self, name):


Mime
View raw message