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

NPE in FairSchedulerAppsBlock#render

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 2.5.0
    • fairscheduler
    • None
    • Reviewed

    Description

      three Steps :
      1、debug at RMAppManager#submitApplication after code
      if (rmContext.getRMApps().putIfAbsent(applicationId, application) !=
      null)

      { String message = "Application with id " + applicationId + " is already present! Cannot add a duplicate!"; LOG.warn(message); throw RPCUtil.getRemoteException(message); }

      2、submit one application:hadoop jar ~/hadoop-current/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.0.0-ydh2.2.0-tests.jar sleep -Dhadoop.job.ugi=test2,#111111 -Dmapreduce.job.queuename=p1 -m 1 -mt 1 -r 1

      3、go in page :http://ip:50030/cluster/scheduler and find 500 ERROR!

      the log:

      2013-12-30 11:51:43,795 ERROR org.apache.hadoop.yarn.webapp.Dispatcher: error handling URI: /cluster/scheduler
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              ....
      Caused by: java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.FairSchedulerAppsBlock.render(FairSchedulerAppsBlock.java:96)
      	at org.apache.hadoop.yarn.webapp.view.HtmlBlock.render(HtmlBlock.java:66)
      	at org.apache.hadoop.yarn.webapp.view.HtmlBlock.renderPartial(HtmlBlock.java:76)
      

      Attachments

        1. YARN-1550.patch
          2 kB
          caolong
        2. YARN-1550.001.patch
          2 kB
          Anubhav Dhoot
        3. YARN-1550.002.patch
          7 kB
          Anubhav Dhoot
        4. YARN-1550.003.patch
          7 kB
          Anubhav Dhoot

        Activity

          People

            adhoot Anubhav Dhoot
            fengshen caolong
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: