You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2017/11/16 19:46:05 UTC
[49/50] [abbrv] ambari git commit: AMBARI-22444 - Add Native
Libraries To Tez Tarball (part4) (jonathanhurley)
AMBARI-22444 - Add Native Libraries To Tez Tarball (part4) (jonathanhurley)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/365c91e9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/365c91e9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/365c91e9
Branch: refs/heads/branch-feature-AMBARI-20859
Commit: 365c91e92698f6a566b8503486f80c736af79e70
Parents: f51b1cc
Author: Jonathan Hurley <jh...@hortonworks.com>
Authored: Thu Nov 16 14:11:28 2017 -0500
Committer: Jonathan Hurley <jh...@hortonworks.com>
Committed: Thu Nov 16 14:12:32 2017 -0500
----------------------------------------------------------------------
.../resource_management/libraries/functions/copy_tarball.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/365c91e9/ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py b/ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py
index 9b6fb98..dda1a18 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py
@@ -101,6 +101,9 @@ def _prepare_tez_tarball():
with closing(tarfile.open(tez_tarball_with_native_lib, "w:gz")) as new_tez_tarball:
new_tez_tarball.add(tez_temp_dir, arcname=os.path.sep)
+ # ensure that the tarball can be read and uploaded
+ sudo.chmod(tez_tarball_with_native_lib, 0744)
+
# cleanup
sudo.rmtree(mapreduce_temp_dir)
sudo.rmtree(tez_temp_dir)