[
https://issues.apache.org/jira/browse/HADOOP-14254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103747#comment-17103747
]
Ayush Saxena commented on HADOOP-14254:
---------------------------------------
Thanx [~elgoiri] for the review!!!
bq. Not much to do with the checkstyle unless we want to have like a struct to
pass the arguments.
I tried, but now the constructor started giving warning for number of
parameters :
{noformat}
./hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyMapper.java:392:
private CopyFileDescriptor(String description,:13: More than 7 parameters
(found 8).
{noformat}
Need to use some builder kind of stuff if we want to counter this. Not sure for
a checkstyle warning this would be worth doing and this wouldn't be used too
anywhere else. Give a check if v2 can work.
> 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-alpha4
> Reporter: Wei-Chiu Chuang
> Priority: Major
> Attachments: HADOOP-14254-01.patch, HADOOP-14254-02.patch,
> HADOOP-14254-03.patch, 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
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]