You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2017/01/23 14:47:03 UTC

[2/2] ambari git commit: AMBARI-18739. Perf: Create Rolling and Express Upgrade Packs. Fix of concurrent cp (dlysnichenko)

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/203e9fab
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/203e9fab
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/203e9fab

Branch: refs/heads/trunk
Commit: 203e9fab7b6c4ae1895a8c545991ada8b9e7503e
Parents: c32eb48
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Mon Jan 23 16:45:54 2017 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Mon Jan 23 16:46:45 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/203e9fab/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):