You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2017/11/17 13:32:32 UTC
[08/11] 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/72785da8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/72785da8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/72785da8
Branch: refs/heads/branch-feature-AMBARI-22457
Commit: 72785da88a1c93a12d45f4fdad815e144a1beb5f
Parents: 2951257
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:11:37 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/72785da8/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 dfe7c62..b05c97c 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)