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 "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2017/03/29 17:25:41 UTC

[jira] [Comment Edited] (HADOOP-14254) Add a Distcp option to preserve Erasure Coding attributes

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

Wei-Chiu Chuang edited comment on HADOOP-14254 at 3/29/17 5:25 PM:
-------------------------------------------------------------------

I think this new option will require HDFS-10996, so I do not have a patch to implement it. But here's a test to demonstrate my idea, which currently fails in trunk because of lack of such capability.


was (Author: jojochuang):
I think this new option will require HDFS-10996, so I do not have a patch to implement it. But here's a test to demonstrate my idea.

> Add a Distcp option to preserve Erasure Coding attributes
> ---------------------------------------------------------
>
>                 Key: HADOOP-14254
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14254
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: tools/distcp
>    Affects Versions: 3.0.0-alpha3
>            Reporter: Wei-Chiu Chuang
>         Attachments: HADOOP-14254.test.patch, HDFS-11472.001.patch
>
>
> Currently Distcp does not preserve the erasure coding attributes properly. I propose we add a "-pe" switch to ensure erasure coded files at source are copied as erasure coded files at destination.
> For example, if the src cluster has the following directories and files that are copied to dest cluster
> hdfs://src/ root directory is replicated
> hdfs://src/foo erasure code enabled directory
> hdfs://src/foo/bar erasure coded file
> after distcp, hdfs://dest/foo and hdfs://dest/foo/bar will not be erasure coded. 
> It may be useful to add such capability. One potential use is for disaster recovery. The other use is for out-of-place cluster upgrade.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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