-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18635 : Expose distcp counters to user via new DistCpConstants "CONF_LABEL_DI… #5402
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
Conversation
…STCP_TOTAL_BYTES_COPIED". The constant indicate number of bytes copied by distcp operation. It is exposed via configuration parameter through which user can obtain the value.
|
💔 -1 overall
This message was automatically generated. |
… after distcp is run.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
steveloughran
left a comment
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.
it's a pretty inelegant way of passing results back, isn't it: updating the conf file passed in.
I would be a lot happier if an IOStatisticsSnapshot was built up and returned, but that is a much bigger bit of work. (I'd actually like all iostats to be collected from workers and handed back...)
if you are going this way and others are happy with the idea, all the various counters should be returned this way and the distcp docs updated to cover this.
| ToolRunner.run(conf, distcpTool, args); | ||
| final long bytesCopied = NumberUtils.toLong(distcpTool.getConf(). | ||
| get(CONF_LABEL_DISTCP_TOTAL_BYTES_COPIED), 0); | ||
| assertEquals("Bytes copied by distcp tool should match source file length", |
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.
assert args are the wrong way round for the generated error messages.
Corrected order of assert args in TestDistCpSystem.testDistcpLargeFile test.
|
🎊 +1 overall
This message was automatically generated. |
|
I really don't like how the results come back. I'm going to propose adding IOStatistics support to distcp so lined up for future work and to not modify the source config to suddenly become two way exchange of data
This is extra work and you have to learn a new api, but
|
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
…STCP_TOTAL_BYTES_COPIED".
The constant indicate number of bytes copied by distcp operation. It is exposed via configuration parameter through which user can obtain the value.
Description of PR
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?