hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohith Sharma K S (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4763) RMApps Page crashes with NPE
Date Mon, 07 Mar 2016 02:17:40 GMT

    [ https://issues.apache.org/jira/browse/YARN-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182469#comment-15182469
] 

Rohith Sharma K S commented on YARN-4763:
-----------------------------------------

As I see this issue is not because of rmappattempt is in NEW state where as Attempt itself
is not created yet. In such case, application report send current attempt id by using dummy
application attempt number. This time period is very very small may be fraction of seconds!!
{code}
if (currentApplicationAttemptId == null) {
        currentApplicationAttemptId = 
            BuilderUtils.newApplicationAttemptId(this.applicationId, 
                DUMMY_APPLICATION_ATTEMPT_NUMBER);
      }
{code}

> RMApps Page crashes with NPE
> ----------------------------
>
>                 Key: YARN-4763
>                 URL: https://issues.apache.org/jira/browse/YARN-4763
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: webapp
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>             Fix For: 2.9.0
>
>         Attachments: 0001-YARN-4763.patch
>
>
> {noformat}
> =application_1457010932347_0121
> 2016-03-04 10:16:27,016 INFO org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer:
application_1457010932347_0121 found existing hdfs token Kind: HDFS_DELEGATION_TOKEN, Service:
ha-hdfs:hacluster, Ident: (HDFS_DELEGATION_TOKEN token 128 for yarn with renewer yarn)
> 2016-03-04 10:16:27,029 ERROR org.apache.hadoop.yarn.webapp.Dispatcher: error handling
URI: /cluster/apps
> java.lang.NullPointerException
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.RMAppsBlock.renderData(RMAppsBlock.java:100)
>         at org.apache.hadoop.yarn.server.webapp.AppsBlock.render(AppsBlock.java:140)
>         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.HtmlBlock$Block.subView(HtmlBlock.java:43)
>         at org.apache.hadoop.yarn.webapp.hamlet.Hamlet._(Hamlet.java:30354)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.AppsBlockWithMetrics.render(AppsBlockWithMetrics.java:30)
>         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.hamlet.HamletImpl$EImp._v(HamletImpl.java:117)
>         at org.apache.hadoop.yarn.webapp.hamlet.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.Dispatcher.render(Dispatcher.java:197)
>         at org.apache.hadoop.yarn.webapp.Dispatcher.service(Dispatcher.java:156)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
> {noformat}
> Application state is NEW the apptempts can be empty as per inital analysis
> {noformat}
> rm.getRMContext().getRMApps()
>           .get(appAttemptId.getApplicationId()).getAppAttempts()
>           .get(appAttemptId)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message