z-bb commented on code in PR #4929:
URL: https://github.com/apache/ozone/pull/4929#discussion_r1236731702
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/OzoneClientAdapter.java:
##########
@@ -46,9 +46,17 @@ public interface OzoneClientAdapter {
OzoneFSOutputStream createFile(String key, short replication,
boolean overWrite, boolean recursive) throws IOException;
+ OzoneFSOutputStream createFile(String key, short replication,
+ boolean overWrite, boolean recursive,
+ String ecPolicyName) throws IOException;
Review Comment:
@sodonnel Thank you for your reply.
In response to this question The data is EC in Ozone, but goes to a non EC
folder in HDFS - how will that work, and what will the replication factor be
set to in HDFS? The result of my test is 3.
At this jira https://issues.apache.org/jira/browse/HADOOP-14254 add a "-pe"
switch to ensure erasure coded files at source are copied as erasure coded
files at destination.
But when I distcp specify -p HDFS EC to Ozone Ratis Bucket, The number of
replicas in ozone is neither ec nor RATIS-THREE, but Ratis-ONE.
In this pr
https://github.com/apache/hadoop/commit/c757cb61ebc9e69d9f6f143da91189b9f0517ee9#diff-6207b5e70af95b856263703af631c577358dd06662d364f06347827d92f734f2.
His conditions are very harsh, `sourceStatus instanceof HdfsFileStatus &&
targetFS instanceof DistributedFileSystem`
Only then will the ecPolicy attribute be obtained, which causes distcp to
cannot obtain the ecPolicy in the ozone.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]