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

Arun Kumar M edited comment on KNOX-3474 at 9/21/26 7:15 AM:
-------------------------------------------------------------

Upstream PR: [https://github.com/apache/knox/pull/1413]
Depends on: [https://github.com/apache/knox/pull/1411], 
[https://github.com/apache/knox/pull/1412]
Branch: samuhasavak5:KNOX-3474-spark4historyui
Build: mvn -pl gateway-service-definitions,gateway-discovery-cm -am test 
-DskipITs — BUILD SUCCESS (351/351 tests passed)

Manual verification:
 - Verified on a test deployment with Knox Homepage and SPARK4HISTORYUI 
configured in the gateway topology.
 - The Knox Homepage shows a dedicated Spark 4 History Server Web UI tile with 
logo.
 - Clicking the tile opens the History Server UI through the Knox gateway path 
/spark4history/.
 - YARN UI history links with spark4=true route to /spark4history/history/.

 

!image-2026-09-21-12-45-18-833.png|width=1013,height=501!


was (Author: JIRAUSER314139):
Upstream PR: https://github.com/apache/knox/pull/1413
Depends on: https://github.com/apache/knox/pull/1411, 
https://github.com/apache/knox/pull/1412
Branch: samuhasavak5:KNOX-3474-spark4historyui
Build: mvn -pl gateway-service-definitions,gateway-discovery-cm -am test 
-DskipITs — BUILD SUCCESS (351/351 tests passed)

Manual verification:
- Verified on a test deployment with Knox Homepage and SPARK4HISTORYUI 
configured in the gateway topology.
- The Knox Homepage shows a dedicated Spark 4 History Server Web UI tile with 
logo.
- Clicking the tile opens the History Server UI through the Knox gateway path 
/spark4history/.
- YARN UI history links with spark4=true route to /spark4history/history/.

 

!image-2026-09-18-01-10-40-022.png|width=745,height=468!

> Add Knox service definition for Spark 4 History Server UI (spark4historyui)
> ---------------------------------------------------------------------------
>
>                 Key: KNOX-3474
>                 URL: https://issues.apache.org/jira/browse/KNOX-3474
>             Project: Apache Knox
>          Issue Type: Task
>            Reporter: Arun Kumar M
>            Priority: Major
>         Attachments: image-2026-09-18-01-10-32-387.png, 
> image-2026-09-18-01-10-40-022.png, image-2026-09-21-12-45-18-833.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> *Summary*
> Add upstream Knox support for the Spark 4 History Server Web UI (role: 
> SPARK4HISTORYUI).
>  
> *Motivation*
> Knox already supports spark3historyui (SPARK3HISTORYUI). Spark 4 deployments 
> need an equivalent service definition so the History Server UI is reachable 
> through Knox and linked correctly from YARN ResourceManager UI.
>  
> *Implementation*
> Base on existing spark3historyui/3.0.0/ pattern:
>  
> | Item | Value |
> |------|-------|
> | Service role | SPARK4HISTORYUI |
> | Service name / URL path | spark4history |
> | Metadata type | UI |
> | shortDesc | Spark 4 History Server Web UI |
> | CM discovery | Spark4HistoryUIServiceModelGenerator (extend 
> SparkHistoryUIServiceModelGenerator) |
> | CM service type | SPARK4_ON_YARN (align with CM Spark 4 service type) |
> | CM role type | SPARK4_YARN_HISTORY_SERVER (align with CM Spark 4 role type) 
> |
>  
> *Scope*
> *1. Service definition*
> - gateway-service-definitions/services/spark4historyui/3.0.0/service.xml
> - gateway-service-definitions/services/spark4historyui/3.0.0/rewrite.xml
> - Inbound/outbound rewrite rules for /spark4history/, /history/, jobs pages, 
> SSO header filters
>  
> *2. Cloudera Manager discovery*
> - Spark4HistoryUIServiceModelGenerator.java + unit tests
> - META-INF/services ServiceModelGenerator registration
> - ClouderaManagerServiceDiscoveryTest (HTTP and SSL port variants)
>  
> *3. YARN UI cross-links (required for RM → Spark 4 History navigation)*
> - gateway-service-definitions/services/yarnui/2.7.0/rewrite.xml
> - Add spark4history redirect rule parallel to existing spark3history rule
> - Pattern: *://*:*/history/\{**}?spark4=true?\{**} → 
> \{$frontend[url]}/spark4history/history/\{**}?\{**}
> - gateway-service-definitions/services/yarnuiv2/3.0.0/rewrite.xml
> - Same spark4history rule as above
>  
> *4. Admin / configuration*
> - gateway-admin-ui: add SPARK4HISTORYUI to service role list
> - Homepage icon for Spark 4 History Server (if icon metadata support is 
> included)
>  
> *Out of scope*
> - Spark History Server SPNEGO / authentication configuration
> - Spark 4 parcel installation issues
>  
> *Acceptance criteria*
> - /spark4history/** routes to Spark 4 History Server backend through Knox
> - CM discovery resolves SPARK4HISTORYUI URLs (HTTP and HTTPS)
> - YARN RM UI links with ?spark4=true route to Knox spark4history path
> - Service tile appears on Knox Homepage
> - Unit tests pass



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

Reply via email to