[ 
https://issues.apache.org/jira/browse/YARN-11936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

chhinlinghean resolved YARN-11936.
----------------------------------
    Resolution: Not A Problem

After testing with KNOX-3249, dynamic host is not required at all. KNOX rewrite 
rules could query /scheduler-ui/ from the RM-HOST.
Example: \{$serviceUrl[YARNSUI]} - will access the cdp-proxy.xml to get the RM 
HOST
 
 {{<rule dir="IN" name="YARNSUI/yarnsui/inbound/root" 
pattern="*://*:*/**/yarnsui/">  <rewrite 
template="\{$serviceUrl[YARNSUI]}/scheduler-ui/"/></rule>}}
 
 {{<service>  <role>YARNSUI</role>  
<url>https://\{knox-gateway}</url></service>}}

Thus this ticket is not required.

> Dynamic host support
> --------------------
>
>                 Key: YARN-11936
>                 URL: https://issues.apache.org/jira/browse/YARN-11936
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Bence Kosztolnik
>            Assignee: chhinlinghean
>            Priority: Major
>
> Currently the web app can be only running on \{RM_HOST}/
> scheduler-ui path and can not put them behind proxy, otherwise the calls like
> {code:java}
> return `${window.location.origin}/ws/v1/cluster`;{code}
> will fails.
> [https://github.com/apache/hadoop/blob/3db56ba8c474e7cc0e4ee3f2321daf2ab54291cf/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-capacity-scheduler-ui/src/main/webapp/src/lib/api/config.ts#L56]
> This change is required for knox support



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to