-
Notifications
You must be signed in to change notification settings - Fork 9.1k
YARN-11391 Add yarn RM DNS support #5196
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
@lnbest0707 Thank you very much for your contribution, I think it would be better to make this part an optional configuration. Why the code submission is 2 different users? |
Hi @slfan1989 thanks for your reply.
|
💔 -1 overall
This message was automatically generated. |
continue; | ||
} | ||
LOG.info("Resolved addresses for " + addr + | ||
" is " + Arrays.toString(resolvedHostNames)); |
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 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.
record logs, generally using placeholders in this way.
resolvedHostNames = dnr.getAllResolvedHostnameByDomainName( | ||
address.getHostName(), requireFQDN); | ||
} catch (UnknownHostException e) { | ||
LOG.warn("Exception in resolving socket address " |
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.
{}
@lnbest0707 From my personal point of view, the quality of the code is good. We should add some instructions to tell users how to use these configurations. |
💔 -1 overall
This message was automatically generated. |
@slfan1989 thanks a lot for your review. Will add the instructions, do you have any suggestions where to add it? Just in the commit message or in a separate file (or which file). Besides, I feel the issue reported by Jenkins a false alert. The "Unsynchronized access" reported by it is a READ call from a log function. I don't think we should add any locks on logging call. Please share any suggestions to bypass it. Thanks. |
I agree with you. We better fix checkstyle. |
Duplicate to #5213 @slfan1989 somehow my amending commit went to a new PR as above. Please check that one and I will close this. Sorry for inconvenience. |
Description of PR
Add DNS discovery support for YARN RM services. It would accept DNS multi-A record as input from yarn-site.xml. Upon configurations, it would resolve the DNS and do reverse lookup. Both server (RM, NM, app container) and client could utilize the same DNS functionality. Besides, it is backward compatible with plain DNS A record.
How was this patch tested?
local mvn test
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?