[
https://issues.apache.org/jira/browse/YARN-11821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17952790#comment-17952790
]
ASF GitHub Bot commented on YARN-11821:
---------------------------------------
hadoop-yetus commented on PR #7697:
URL: https://github.com/apache/hadoop/pull/7697#issuecomment-2893352995
:confetti_ball: **+1 overall**
| Vote | Subsystem | Runtime | Logfile | Comment |
|:----:|----------:|--------:|:--------:|:-------:|
| +0 :ok: | reexec | 8m 19s | | Docker mode activated. |
|||| _ Prechecks _ |
| +1 :green_heart: | dupname | 0m 0s | | No case conflicting files
found. |
| +0 :ok: | codespell | 0m 1s | | codespell was not available. |
| +0 :ok: | detsecrets | 0m 1s | | detect-secrets was not available.
|
| +1 :green_heart: | @author | 0m 0s | | The patch does not contain
any @author tags. |
| +1 :green_heart: | test4tests | 0m 0s | | The patch appears to
include 1 new or modified test files. |
|||| _ trunk Compile Tests _ |
| +0 :ok: | mvndep | 6m 5s | | Maven dependency ordering for branch |
| +1 :green_heart: | mvninstall | 18m 9s | | trunk passed |
| +1 :green_heart: | compile | 2m 59s | | trunk passed with JDK
Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 |
| +1 :green_heart: | compile | 2m 42s | | trunk passed with JDK
Private Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| +1 :green_heart: | checkstyle | 1m 0s | | trunk passed |
| +1 :green_heart: | mvnsite | 1m 7s | | trunk passed |
| +1 :green_heart: | javadoc | 1m 4s | | trunk passed with JDK
Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 |
| +1 :green_heart: | javadoc | 1m 3s | | trunk passed with JDK
Private Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| +1 :green_heart: | spotbugs | 1m 59s | | trunk passed |
| +1 :green_heart: | shadedclient | 20m 16s | | branch has no errors
when building and testing our client artifacts. |
|||| _ Patch Compile Tests _ |
| +0 :ok: | mvndep | 0m 23s | | Maven dependency ordering for patch |
| +1 :green_heart: | mvninstall | 0m 36s | | the patch passed |
| +1 :green_heart: | compile | 2m 40s | | the patch passed with JDK
Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 |
| +1 :green_heart: | javac | 2m 40s | | the patch passed |
| +1 :green_heart: | compile | 2m 35s | | the patch passed with JDK
Private Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| +1 :green_heart: | javac | 2m 35s | | the patch passed |
| +1 :green_heart: | blanks | 0m 0s | | The patch has no blanks
issues. |
| -0 :warning: | checkstyle | 0m 50s |
[/results-checkstyle-hadoop-yarn-project_hadoop-yarn.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7697/2/artifact/out/results-checkstyle-hadoop-yarn-project_hadoop-yarn.txt)
| hadoop-yarn-project/hadoop-yarn: The patch generated 6 new + 168 unchanged
- 0 fixed = 174 total (was 168) |
| +1 :green_heart: | mvnsite | 1m 0s | | the patch passed |
| +1 :green_heart: | javadoc | 0m 54s | | the patch passed with JDK
Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04 |
| +1 :green_heart: | javadoc | 0m 56s | | the patch passed with JDK
Private Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| +1 :green_heart: | spotbugs | 2m 4s | | the patch passed |
| +1 :green_heart: | shadedclient | 20m 10s | | patch has no errors
when building and testing our client artifacts. |
|||| _ Other Tests _ |
| +1 :green_heart: | unit | 0m 46s | | hadoop-yarn-api in the patch
passed. |
| +1 :green_heart: | unit | 1m 7s | | hadoop-yarn-server-web-proxy in
the patch passed. |
| +1 :green_heart: | asflicense | 0m 37s | | The patch does not
generate ASF License warnings. |
| | | 102m 7s | | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | ClientAPI=1.49 ServerAPI=1.49 base:
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7697/2/artifact/out/Dockerfile
|
| GITHUB PR | https://github.com/apache/hadoop/pull/7697 |
| Optional Tests | dupname asflicense compile javac javadoc mvninstall
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
| uname | Linux 4b6fd2fb3983 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15
15:53:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | dev-support/bin/hadoop.sh |
| git revision | trunk / 8ff472a0b33a3a9bab9e9fb3a509f5aced76d3f0 |
| Default Java | Private Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| Multi-JDK versions |
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.27+6-post-Ubuntu-0ubuntu120.04
/usr/lib/jvm/java-8-openjdk-amd64:Private
Build-1.8.0_452-8u452-ga~us1-0ubuntu1~20.04-b09 |
| Test Results |
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7697/2/testReport/ |
| Max. process+thread count | 559 (vs. ulimit of 5500) |
| modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy
U: hadoop-yarn-project/hadoop-yarn |
| Console output |
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7697/2/console |
| versions | git=2.25.1 maven=3.6.3 spotbugs=4.2.2 |
| Powered by | Apache Yetus 0.14.0 https://yetus.apache.org |
This message was automatically generated.
> Support pattern matching for YARN proxy addresses.
> --------------------------------------------------
>
> Key: YARN-11821
> URL: https://issues.apache.org/jira/browse/YARN-11821
> Project: Hadoop YARN
> Issue Type: Bug
> Components: nodemanager, router
> Affects Versions: 3.4.1
> Reporter: SUYEON LEE
> Priority: Major
> Attachments: 스크린샷 2025-02-20 오후 6.14.27.png
>
>
> *Issue:*
> In a YARN Federation environment utilizing multiple YARN Routers, if a Global
> Server Load Balancer (GSLB) is used for distributing requests to these
> Routers _without_ sticky session support, users encounter redirection errors.
> !스크린샷 2025-02-20 오후 6.14.27.png!
> These errors typically manifest when accessing application UIs or logs via
> the NodeManager's proxy.
> *Problem Details:*
> The root cause of this issue lies in how the NodeManager (NM) resolves the
> YARN Router address for proxying web requests. The NodeManager uses the
> {{yarn.web-proxy.address}} configuration property to determine the Router's
> address. However, this property is designed to accommodate only a single
> hostname or IP address.
> When a GSLB without sticky sessions distributes requests, an initial request
> might be routed to Router A, while a subsequent request (e.g., for
> application logs, proxied by an NM) might be directed by the GSLB to Router
> B, or the NM might be configured with a specific Router/GSLB VIP that
> resolves to Router B. If the ApplicationMaster (AM) for the application in
> question is registered with Router A, Router B may not be able to correctly
> proxy or redirect the request, leading to errors. The NM's attempt to proxy
> through an "incorrect" or context-unaware Router (relative to where the AM is
> known) due to the single-host limitation in {{yarn.web-proxy.address}}
> results in these failures.
> *Analysis / Root Cause Summary:*
> # *Environment:* YARN Federation with multiple YARN Routers.
> # *Load Balancing:* GSLB used without sticky session support, leading to
> requests for the same session potentially hitting different Routers.
> # *NM Proxy Mechanism:* NodeManagers use {{yarn.web-proxy.address}} to
> identify the YARN Router for proxying UI/log requests.
> # *Configuration Limitation:* {{yarn.web-proxy.address}} supports only a
> single host, making it incompatible with a multi-Router setup where requests
> are not sticky.
> # *Symptom:* Redirection errors occur as the NM may attempt to proxy through
> a Router that does not have the necessary context for the specific
> application/AM, or is not the Router the user was initially interacting with
> via the GSLB.
> *Proposed Solution:*
> To address this limitation, a patch has been developed to introduce
> *pattern-based address matching for the YARN web proxy functionality.*
> This enhancement will allow {{yarn.web-proxy.address.pattern}} to be
> configured with a pattern or a list of Routers. The NodeManager's proxy
> mechanism can then intelligently select or match the appropriate Router
> address, ensuring that requests are proxied correctly even in a federated
> environment with multiple Routers and non-sticky load balancing.
> *Goal of the Patch:*
> * Enable robust YARN web proxying in federated environments with multiple
> Routers load-balanced by a non-sticky GSLB.
> * Improve the usability and reliability of accessing application UIs and
> logs in such configurations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]