Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8065

distcp should have an option to compress data while copying.

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.20.2
    • Fix Version/s: 0.20.2
    • Component/s: fs
    • Labels:
    • Tags:


      We would like compress the data while transferring from our source system to target system. One way to do this is to write a map/reduce job to compress that after/before being transferred. This looks inefficient.
      Since distcp already reading writing data it would be better if it can accomplish while doing this.

      Flip side of this is that distcp -update option can not check file size before copying data. It can only check for the existence of file.

      So I propose if -compress option is given then file size is not checked.

      Also when we copy file appropriate extension needs to be added to file depending on compression type.


        1. HADOOP-8065.005.patch
          13 kB
          Yongjun Zhang
        2. HADOOP-8065.006.patch
          17 kB
          Yongjun Zhang
        3. HADOOP-8065-trunk_2015-11-03.patch
          20 kB
          Stephen Veiss
        4. HADOOP-8065-trunk_2015-11-04.patch
          20 kB
          Stephen Veiss
        5. HADOOP-8065-trunk_2016-04-29-4.patch
          13 kB
          Suraj Nayak
        6. patch.distcp.2012-02-10
          9 kB
          Suresh Antony

        Issue Links



            • Assignee:
              snayakm Suraj Nayak
              santony73_hadoop Suresh Antony


              • Created:

                Issue deployment