Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7375

Possible NPE in RMWebapp when HA is enabled and the active RM fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0, 3.1.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Caused by: java.lang.NullPointerException
      at org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo.<init>(AppInfo.java:327)
      at org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo.<init>(AppInfo.java:133)
      at org.apache.hadoop.yarn.server.resourcemanager.webapp.RMAppAttemptBlock.createResourceRequestsTable(RMAppAttemptBlock.java:77)
      at org.apache.hadoop.yarn.server.resourcemanager.webapp.RMAppAttemptBlock.createTablesForAttemptMetrics(RMAppAttemptBlock.java:280)
      at org.apache.hadoop.yarn.server.webapp.AppAttemptBlock.render(AppAttemptBlock.java:153)
      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.appattempt(RmController.java:58)

      Steps:
      1. RM HA is enabled
      2. Started a service
      3. Active RM failed.
      4. Switched to the Web UI of Standby RM
      5. Clicked to view the containers of the previous started application and landed to an error page.
      6. The NPE mentioned above was found in the standby RM logs

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                csingh Chandni Singh
                Reporter:
                csingh Chandni Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: