[
https://issues.apache.org/jira/browse/YARN-4515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15273373#comment-15273373
]
Wangda Tan commented on YARN-4515:
----------------------------------
Some issues when I tried to run with the patch:
What I have done:
- I copied js/html to webapps/rm
- Modified {{webapps/rm/config/configs.env}} to make sure {{localBaseAddress:
"localhost:1337"}}
- Start RM in local host
- Run corsproxy
- Go to localhost:8288
It shows error:
{code}
XMLHttpRequest cannot load
http://localhost:1337/localhost:8088/ws/v1/cluster/metrics. The
'Access-Control-Allow-Origin' header contains multiple values
'http://evil.com/, *', but only one is allowed. Origin 'http://localhost:8288'
is therefore not allowed access.
vendor-f2b8b19….js:11 Error: Adapter operation failed
at new Error (native)
at Error.n
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:8:4037)
at Error.e
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:2065)
at n.handleResponse
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:22139)
at n.c.error
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:22648)
at c
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:2:6024)
at Object.fireWith [as rejectWith]
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:2:6836)
at n
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:3:11508)
at XMLHttpRequest.<anonymous>
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:3:17202)
{code}
And if I set localBaseAddress to empty, and stop corsproxy, on localhost:8288,
it shows:
{code}
XMLHttpRequest cannot load http://localhost:8088/ws/v1/cluster/metrics. A
wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when
the credentials flag is true. Origin 'http://localhost:8288' is therefore not
allowed access. The credentials mode of an XMLHttpRequest is controlled by the
withCredentials attribute.
vendor-f2b8b19….js:11 Error: Adapter operation failed
at new Error (native)
at Error.n
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:8:4037)
at Error.e
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:2065)
at n.handleResponse
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:22139)
at n.c.error
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:30:22648)
at c
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:2:6024)
at Object.fireWith [as rejectWith]
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:2:6836)
at n
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:3:11508)
at XMLHttpRequest.<anonymous>
(http://localhost:8288/assets/vendor-f2b8b19533691ddb57f3926c35c36bf2.js:3:17202)
{code}
And a couple of quick comments:
1. Could we add a config to start yarn-ui-v2 on demand? (disable it by default)
2. {{LOG.error("Failed to start Yarn web app v2")}} should not swallow exception
> [YARN-3368] Support hosting web UI framework inside YARN RM
> -----------------------------------------------------------
>
> Key: YARN-4515
> URL: https://issues.apache.org/jira/browse/YARN-4515
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Wangda Tan
> Assignee: Sunil G
> Attachments: 0001-YARN-4515.patch,
> preliminary-YARN-4515-host_rm_web_ui_v2.patch
>
>
> Currently it can be only launched outside of YARN, we should make it runnable
> inside YARN for easier testing and we should have a configuration to
> enable/disable it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]