Thanks Sunil G for working on the patch.
Few comments & suggestions:
1) Is it better to rename yarn.resourcemanager.webapp.ui2.enable to yarn.webapp.ui2.enable, since the UI is not only for resourcemanager.
2) When RM is runs on the local host, we still need to run corsproxy. Do you know what can we do to fix it?
3) A couple of renames:
- URL endpoint: /newUI to /ui2 (consistent with config key)
- public WebApp start(WebApp webapp, WebAppContext context), context to ui2Context
Beyond this, patch looks good. And if you have some bandwidth, could you test the patch on a distributed environment?