-
Notifications
You must be signed in to change notification settings - Fork 8.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-17611. Move all DistCp execution logic to execute() #7025
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.
this going to cause any problems in use by apps like Hive?
Hi @steveloughran , thanks for the review. I think it won't affect apps that use distcp like Hive since the code flow from |
Actually, upon further checks + during UT fixing, it does seem like the default behaviour of |
💔 -1 overall
This message was automatically generated. |
I was worried about the "Trivial code change" comment. never is, sadly. |
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Thanks @kokon191 for your work, please fix javadoc issue, thanks~ |
Thanks @haiyang1987 for taking a look. |
💔 -1 overall
This message was automatically generated. |
💔 -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.
still got that javadoc. i know, it's a losing battle..
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
Outdated
Show resolved
Hide resolved
🎊 +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.
LGTM +1
Committed to trunk. Thanks @kokon191 for your works. And @steveloughran @ferhui for your reviews. |
…)" This reverts commit ff75aa5.
Hi @kokon191 this PR should be move to hadoop common. thanks~ |
Description of PR
Many code flows create a DistCp instance and call the public method execute() to get the Job object for better control over the distcp job but some logics are only called by the run() method. Should move these lines over to execute().
How was this patch tested?
Trivial code change