[
https://issues.apache.org/jira/browse/YARN-8022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394977#comment-16394977
]
Tarun Parimi commented on YARN-8022:
------------------------------------
[~rohithsharma] Looks like callerUgi null check before the revert was handled
by
{code:java}
if (callerUGI == null) {
throw new AuthenticationException(
"Failed to get user name from request");
}{code}
which is not present in this patch. So even before the revert if callerUgi is
equal to null, the page will not be rendered. But the NPE will be avoided.
Also if we are going to throw this exception, the further null check of
callerUgi below is not needed. Can we remove that?
{code:java}
if (callerUGI == null) {
containerReport =
getContainerReport(request);
} else {
containerReport = callerUGI.doAs(
new PrivilegedExceptionAction<ContainerReport>() {
{code}
> ResourceManager UI cluster/app/<app-id> page fails to render
> ------------------------------------------------------------
>
> Key: YARN-8022
> URL: https://issues.apache.org/jira/browse/YARN-8022
> Project: Hadoop YARN
> Issue Type: Bug
> Components: webapp
> Affects Versions: 3.1.0, 3.2.0
> Reporter: Tarun Parimi
> Assignee: Tarun Parimi
> Priority: Blocker
> Attachments: Screen Shot 2018-03-12 at 1.45.05 PM.png,
> YARN-8022.001.patch
>
>
> The page displays the message "Failed to read the attempts of the application"
>
> The following stack trace is observed in RM log.
> org.apache.hadoop.yarn.server.webapp.AppBlock: Failed to read the attempts of
> the application application_1520597233415_0002.
> java.lang.NullPointerException
> at org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:283)
> at org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:280)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:422)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1682)
> at org.apache.hadoop.yarn.server.webapp.AppBlock.render(AppBlock.java:279)
> at
> org.apache.hadoop.yarn.server.resourcemanager.webapp.RMAppBlock.render(RMAppBlock.java:71)
> 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:235)
> 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:212)
> at
> org.apache.hadoop.yarn.server.resourcemanager.webapp.RmController.app(RmController.java:54)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]