You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Balázs Bence Sári (JIRA)" <ji...@apache.org> on 2017/11/10 13:51:00 UTC

[jira] [Updated] (AMBARI-22413) Fix tar_archive.py: 1. remove verbosity flags, 2. fix archive_dir() and archive_directory_dereference() methods

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

Balázs Bence Sári updated AMBARI-22413:
---------------------------------------
    Description: 
There are two issues with tar_archive.py which caused a HDP upgrade to fail at a customer:

# The verbose flag (-v) is switched on. This could result in long archival time and timeouts
# The full path of the files is preserverved in the archive without the leading slash. This results in doubled paths when the archive is expanded. 

E.g:
The contents of _/hadoop/falcon/_ directory is archived.
All files are archived with full path but no leading slash: _hadoop/falcon/<directories>/<filename>_
After unpacking the unpacked file will look like: _/hadoop/falcon/hadoop/falcon/<directories>/<filename>_.


  was:
There are two issues with tar_archive.py which caused a HDP upgrade to fail at a customer:

# The verbose flag (-v) is switched on. This could result in long archival time and timeouts
# The full path of the files is preserverved in the archive without the leading slash. This results in doubled paths when the archive is expanded. 

E.g:
The contents of _/hadoop/falcon/_ directory is archived.
All files are archived with full path but no leading slash: _hadoop/falcon/<directories>/<filename>_
When unpacking the unpacked file will look like: _/hadoop/falcon/hadoop/falcon/<directories>/<filename>.



> Fix tar_archive.py: 1. remove verbosity flags, 2. fix archive_dir() and archive_directory_dereference() methods
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-22413
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22413
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.2
>            Reporter: Balázs Bence Sári
>            Assignee: Balázs Bence Sári
>            Priority: Critical
>
> There are two issues with tar_archive.py which caused a HDP upgrade to fail at a customer:
> # The verbose flag (-v) is switched on. This could result in long archival time and timeouts
> # The full path of the files is preserverved in the archive without the leading slash. This results in doubled paths when the archive is expanded. 
> E.g:
> The contents of _/hadoop/falcon/_ directory is archived.
> All files are archived with full path but no leading slash: _hadoop/falcon/<directories>/<filename>_
> After unpacking the unpacked file will look like: _/hadoop/falcon/hadoop/falcon/<directories>/<filename>_.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)