Repository: ambari Updated Branches: refs/heads/branch-2.5 0ba2615c5 -> 5451deb67
AMBARI-17593: Ambari server backup error - failure if backup size exceeds 4GB Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5451deb6 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5451deb6 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5451deb6 Branch: refs/heads/branch-2.5 Commit: 5451deb6747e8744a63a06abc35acff77a28157f Parents: 0ba2615 Author: Nahappan Somasundaram <[email protected]> Authored: Wed Jul 6 09:33:42 2016 -0700 Committer: Nahappan Somasundaram <[email protected]> Committed: Tue Aug 30 15:43:28 2016 -0700 ---------------------------------------------------------------------- ambari-server/src/main/python/ambari_server/BackupRestore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5451deb6/ambari-server/src/main/python/ambari_server/BackupRestore.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari_server/BackupRestore.py b/ambari-server/src/main/python/ambari_server/BackupRestore.py index 2c00be9..d418b7d 100644 --- a/ambari-server/src/main/python/ambari_server/BackupRestore.py +++ b/ambari-server/src/main/python/ambari_server/BackupRestore.py @@ -58,7 +58,8 @@ class BackupRestore: """ try: print("Creating zip file...") - zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w') + # Use allowZip64=True to allow sizes greater than 4GB + zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w', allowZip64=True) zipdir(zipf, self.state_file_list, self.zipname) except Exception, e: sys.exit("Could not create zip file. Details: " + str(e))
