Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
Description
PROBLEM:
When " ambari-server backup " is run it tries to zip the following directories:
/etc/ /var/lib/ambari-server/resources /var/run/ambari-server/stack-recommendations/1/
And by any chance if the aggregated data in above directories exceeds 4gb you get the following error:
A problem occurred while unzipping. Details: Zipfile size would require ZIP64 extensions
Could not create zip file. Details: Zipfile size would require ZIP64 extensions
STEPS TO REPRODUCE :
1)Exceed the Directory size greater than 4gb
2)Run ambari-server backup
EXPECTED RESULT : Backup should be successful and give something like:
[root@sandbox ~]# ambari-server backup Using python /usr/bin/python Backing up Ambari File System state... *this will not backup the server database* Backup requested. No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip Backup process initiated. Creating zip file... Zip file created at /var/lib/ambari-server/Ambari_State_Backup.zip Backup complete. Ambari Server 'backup' completed successfully.
ACTUAL RESULT : Backup fails with error:
[root@sandbox ~]# ambari-server backup Using python /usr/bin/python Backing up Ambari File System state... *this will not backup the server database* No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip Backup requested. Backup process initiated. Creating zip file... A problem occurred while unzipping. Details: Zipfile size would require ZIP64 extensions Could not create zip file. Details: Zipfile size would require ZIP64 extensions
SOLUTION/WORKAROUND:
In the script :/usr/lib/python2.6/site-packages/ambari_server/BackupRestore.py
Comment out the line :
zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w')
And add:
zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w',allowZip64 = True)
Attachments
Attachments
Issue Links
- links to