YARN-11909. Fix for fetching logs for a running application#8136
Open
p-szucs wants to merge 2 commits intoapache:trunkfrom
Open
YARN-11909. Fix for fetching logs for a running application#8136p-szucs wants to merge 2 commits intoapache:trunkfrom
p-szucs wants to merge 2 commits intoapache:trunkfrom
Conversation
Change-Id: I6af1b8805e6b056fb226aea99e01ab21c5bfd179
Change-Id: I3ff2da3568bf8aae174fa0df64a7a2996fcd439d
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
slfan1989
reviewed
Dec 16, 2025
|
|
||
| @VisibleForTesting | ||
| SSLFactory getSSLFactory() { | ||
| public static SSLFactory getSSLFactory() { |
Contributor
There was a problem hiding this comment.
Why do we need to modify this part?
Contributor
Author
There was a problem hiding this comment.
Thanks for the review @slfan1989!
As I could see we can not reach the SSL factory from the Logs CLI without this
Contributor
Author
|
Hi @slfan1989, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change-Id: I6af1b8805e6b056fb226aea99e01ab21c5bfd179
Description of PR
URL connectivity check in YARN Logs CLI can not connect to the RM on a secured environment when getting the logs for a running application.
Jersey 2 upgrade introduced a new logic for checking URL connectivity before getting the logs from the appropriate services.
This logic uses HttpURLConnection that can not load SSL configuration from the ssl-client.xml on a secure environment. As I can see in such cases we need to use HttpsURLConnection
How was this patch tested?
Tested on a secured and unsecured environment:
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?