You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2016/10/15 00:15:20 UTC

[jira] [Commented] (HADOOP-8065) distcp should have an option to compress data while copying.

    [ https://issues.apache.org/jira/browse/HADOOP-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576966#comment-15576966 ] 

Yongjun Zhang commented on HADOOP-8065:
---------------------------------------

HI [~snayakm], 

Thanks for your work here and thanks [~raviprak] for the review so far.

I quickly browsed the patch, and have a couple of comments:
* {{mapreduce.output.fileoutputformat.compress}} and
{{mapreduce.output.fileoutputformat.compress.codec}} are defined in FileOutputFormat.java, we should use the constant defined there at the multiple places this patch touched.
* May I know what kind of tests you have done for the patch?

Thanks.
 

> distcp should have an option to compress data while copying.
> ------------------------------------------------------------
>
>                 Key: HADOOP-8065
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8065
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 0.20.2
>            Reporter: Suresh Antony
>            Assignee: Suraj Nayak
>            Priority: Minor
>              Labels: distcp
>             Fix For: 0.20.2
>
>         Attachments: HADOOP-8065-trunk_2015-11-03.patch, HADOOP-8065-trunk_2015-11-04.patch, HADOOP-8065-trunk_2016-04-29-4.patch, patch.distcp.2012-02-10
>
>
> 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.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org