You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2016/07/14 21:17:20 UTC

[jira] [Reopened] (AMBARI-17593) Ambari server backup error - failure if backup size exceeds 4GB

     [ https://issues.apache.org/jira/browse/AMBARI-17593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yusaku Sako reopened AMBARI-17593:
----------------------------------

Reopening since this needs to be backported to branch-2.5 when it is available.

> Ambari server backup error - failure if backup size exceeds 4GB
> ---------------------------------------------------------------
>
>                 Key: AMBARI-17593
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17593
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Nahappan Somasundaram
>            Assignee: Nahappan Somasundaram
>             Fix For: 2.5.0
>
>         Attachments: rb49711.patch
>
>
> *PROBLEM:* 
> When " ambari-server backup " is run it tries to zip the following directories:
> {code}
> /etc/ 
> /var/lib/ambari-server/resources
> /var/run/ambari-server/stack-recommendations/1/
> {code}
> And by any chance if the aggregated data in above directories exceeds 4gb you get the following error:
> {code}
> A problem occurred while unzipping. Details: Zipfile size would require ZIP64 extensions 
> Could not create zip file. Details: Zipfile size would require ZIP64 extensions
> {code}
> *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:
> {code:java}
> [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.
> {code}
> *ACTUAL RESULT :* Backup fails with error:
> {code:java}
> [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 
> {code}
> *SOLUTION/WORKAROUND:*
> In the script :/usr/lib/python2.6/site-packages/ambari_server/BackupRestore.py 
> Comment out the line : 
> {code}
> zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w')
> {code}
> And add: 
> {code}
> zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w',allowZip64 = True) 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)