-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-2139. Fast copy for HDFS.FastCopy (This is used for test case . And in the futuer this will split to subtask submission. ) #6950
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already has hadoop distcp, Why do we need hdfs dfs -distcp?
@@ -2544,6 +2544,10 @@ public void moveFromLocalFile(Path src, Path dst) | |||
copyFromLocalFile(true, src, dst); | |||
} | |||
|
|||
public void fastCopy(Path src, Path dst, boolean overwrite) throws IOException { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why empty method ?
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Token<BlockTokenIdentifier> accessToken = getBlockAccessToken(b, | ||
EnumSet.of(BlockTokenIdentifier.AccessMode.WRITE), | ||
targetStorageTypes, targetStorageIds); | ||
Token<BlockTokenIdentifier> accessToken = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of code formatting here.
Description of PR
https://issues.apache.org/jira/browse/HDFS-2139
This is used for compile to verify this is correct. It is for test case . And in the futuer this will split to subtask submission.
It support now:
(1) hdfs dfs -fastcp
(2) Distcp with fastcp
How was this patch tested?
Add test case