Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22413

Fix tar_archive.py: 1. remove verbosity flags, 2. fix archive_dir() and archive_directory_dereference() methods

    XMLWordPrintableJSON

Details

    Description

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

      1. The verbose flag (-v) is switched on. This could result in long archival time and timeouts
      2. 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>.

      Attachments

        1. AMBARI-22413-fix-tar-trunk_v1.patch
          6 kB
          Balázs Bence Sári

        Activity

          People

            bsari Balázs Bence Sári
            bsari Balázs Bence Sári
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m