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 "Suresh Antony (Created) (JIRA)" <ji...@apache.org> on 2012/02/13 19:43:04 UTC
[jira] [Created] (HADOOP-8065) discp should have an option to
compress data while copying.
discp 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
Priority: Minor
Fix For: 0.20.2
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8065) discp should have an option to
compress data while copying.
Posted by "Suresh Antony (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209869#comment-13209869 ]
Suresh Antony commented on HADOOP-8065:
---------------------------------------
If I want to compress the data while moving it from one cluster to another. What is the alternative ?
Only way I can think of do a map/reduce job and compress the data before or after transferring data. That is one more extra read/write operation.
Compression option in distcp is optional. So you do not have to use it if you do not need it.
> discp 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
> Priority: Minor
> Labels: distcp
> Fix For: 0.20.2
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8065) discp should have an option to
compress data while copying.
Posted by "Koji Noguchi (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207366#comment-13207366 ]
Koji Noguchi commented on HADOOP-8065:
--------------------------------------
I'm not convinced compression belongs to distcp.
I would rather see option to compress on 'har' (hadoop archive).
> discp 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
> Priority: Minor
> Labels: distcp
> Fix For: 0.20.2
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8065) discp should have an option to
compress data while copying.
Posted by "Suresh Antony (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Antony updated HADOOP-8065:
----------------------------------
Attachment: patch.distcp.2012-02-10
Attaching patch for distcp.
Added an additional argument
-compress_codec <compress codec class>
Sample command line:
$HADOOP_HOME/bin/hadoop distcp -compress_codec org.apache.hadoop.io.compress.GzipCodec -log hdfs://hadoopmasterflume1/tmp/suresh/log -overwrite hdfs://hadoopmasterflume1/tmp/distcp_src hdfs://hadoopmasterflume1/tmp/distcp_tgt
> discp 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
> Priority: Minor
> Labels: distcp
> Fix For: 0.20.2
>
> Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira