[ https://issues.apache.org/jira/browse/YARN-10540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254114#comment-17254114 ]
Sunil G commented on YARN-10540: -------------------------------- [~hexiaoqiao], This is working for me in the latest build. You are missing the cors configurations in YARN. If you add them, this will load. {code:java} <property> <name>hadoop.http.filter.initializers</name> <value>org.apache.hadoop.security.HttpCrossOriginFilterInitializer</value> </property><property> <description>Enable/disable the cross-origin (CORS) filter.</description> <name>hadoop.http.cross-origin.enabled</name> <value>true</value> </property><property> <description>Comma separated list of origins that are allowed for web services needing cross-origin (CORS) support. Wildcards (*) and patterns allowed</description> <name>hadoop.http.cross-origin.allowed-origins</name> <value>*</value> </property><property> <description>Comma separated list of methods that are allowed for web services needing cross-origin (CORS) support.</description> <name>hadoop.http.cross-origin.allowed-methods</name> <value>GET,POST,HEAD</value> </property><property> <description>Comma separated list of headers that are allowed for web services needing cross-origin (CORS) support.</description> <name>hadoop.http.cross-origin.allowed-headers</name> <value>X-Requested-With,Content-Type,Accept,Origin</value> </property><property> <description>The number of seconds a pre-flighted request can be cached for web services needing cross-origin (CORS) support.</description> <name>hadoop.http.cross-origin.max-age</name> <value>1800</value> </property> {code} > Node page is broken in YARN UI1 and UI2 including RMWebService api for nodes > ---------------------------------------------------------------------------- > > Key: YARN-10540 > URL: https://issues.apache.org/jira/browse/YARN-10540 > Project: Hadoop YARN > Issue Type: Task > Components: webapp > Affects Versions: 3.2.2 > Reporter: Sunil G > Assignee: Jim Brennan > Priority: Critical > Fix For: 3.4.0, 3.3.1, 3.1.5, 2.10.2, 3.2.3 > > Attachments: Mac-Yarn-UI.png, Screenshot 2020-12-19 at 11.01.43 > PM.png, Screenshot 2020-12-19 at 11.02.14 PM.png, Screenshot 2020-12-23 at > 8.24.42 PM.png, YARN-10540.001.patch, Yarn-UI-Ubuntu.png, osx-yarn-ui2.png, > yarnodes.png, yarnui2onubuntu.png > > > YARN-10450 added changes in NodeInfo class. > Various exceptions are showing while accessing UI2 and UI1 NODE pages. > {code:java} > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo.<init>(NodeInfo.java:103) > at > org.apache.hadoop.yarn.server.resourcemanager.webapp.NodesPage$NodesBlock.render(NodesPage.java:164) > at > org.apache.hadoop.yarn.webapp.view.HtmlBlock.render(HtmlBlock.java:69) > at > org.apache.hadoop.yarn.webapp.view.HtmlBlock.renderPartial(HtmlBlock.java:79) > at org.apache.hadoop.yarn.webapp.View.render(View.java:243) > at > org.apache.hadoop.yarn.webapp.view.HtmlPage$Page.subView(HtmlPage.java:49) > at > org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl$EImp._v(HamletImpl.java:117) > at org.apache.hadoop.yarn.webapp.hamlet2.Hamlet$TD.__(Hamlet.java:848) > at > org.apache.hadoop.yarn.webapp.view.TwoColumnLayout.render(TwoColumnLayout.java:71) > at > org.apache.hadoop.yarn.webapp.view.HtmlPage.render(HtmlPage.java:82) > at > org.apache.hadoop.yarn.webapp.Controller.render(Controller.java:216) > at > org.apache.hadoop.yarn.server.resourcemanager.webapp.RmController.nodes(RmController.java:70) > {code} > {code:java} > 2020-12-19 22:55:54,846 WARN > org.apache.hadoop.yarn.webapp.GenericExceptionHandler: INTERNAL_SERVER_ERROR > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo.<init>(NodeInfo.java:103) > at > org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServices.getNodes(RMWebServices.java:450) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org