You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "LoggingResearch (Jira)" <ji...@apache.org> on 2024/09/04 15:43:00 UTC

[jira] [Commented] (YARN-11724) Exposing Configuration Handling for Proxy Host and Port in WebAppUtils

    [ https://issues.apache.org/jira/browse/YARN-11724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879275#comment-17879275 ] 

LoggingResearch commented on YARN-11724:
----------------------------------------

To make it clear on how to fix the issue, we upload the comparison between the original version and the log-enhanced version in the attached file `original-vs-log-enhanced.md`.  The log-enhanced version is generated automatically utilizing our proposed tool. 

> Exposing Configuration Handling for Proxy Host and Port in WebAppUtils
> ----------------------------------------------------------------------
>
>                 Key: YARN-11724
>                 URL: https://issues.apache.org/jira/browse/YARN-11724
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: yarn
>    Affects Versions: 3.3.6
>         Environment: Version: ** {{3.3.6}}
> Location{*}:{*} {{{}hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/util/WebAppUtils.java{}}}, in the {{getProxyHostAndPort}} method, lines 209-219.
>            Reporter: LoggingResearch
>            Priority: Major
>         Attachments: WebAppUtilsTest.java, original-vs-log-enhanced.md
>
>
> The method {{getProxyHostAndPort}} is responsible for retrieving the proxy host and port from the YARN configuration. If the parameter {{yarn.web-proxy.address}} is not set or is empty, the system falls back to resolving the ResourceManager (RM) Web App URL without the scheme. However, this fallback mechanism can cause issues if the proxy settings are expected but not properly configured. The current implementation does not provide any logs or warnings when this fallback occurs, leading to potential misconfigurations going unnoticed.
>  
> *Expected Behavior:* 
> The system should log a warning when the {{yarn.web-proxy.address}} parameter is not set or is empty, informing the user that the system is falling back to the resolved RM Web App URL without the scheme. This log would help users identify and correct potential misconfigurations in their YARN proxy settings.
>  
> *How-to-Fix:*
> We propose adding log statements to expose the handling of unset or empty configuration values when retrieving the proxy host and port.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org