Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-749

The jobfailures.jsp gets a NullPointerException after a task tracker has been lost

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      The job tracker gets a NullPointerException:

      2006-11-27 06:59:25,148 WARN /: /jobfailures.jsp?jobid=job_0001&kind=map:
      java.lang.NullPointerException
      at org.apache.hadoop.mapred.jobfailures_jsp.printFailedAttempts(jobfailu
      res_jsp.java:57)
      at org.apache.hadoop.mapred.jobfailures_jsp.printFailures(jobfailures_js
      p.java:103)
      at org.apache.hadoop.mapred.jobfailures_jsp._jspService(jobfailures_jsp.
      java:168)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427
      )
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
      onHandler.java:475)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
      67)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
      Context.java:635)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
      at org.mortbay.http.HttpServer.service(HttpServer.java:954)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      244)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

      when there is a lost task tracker. Since the task tracker was lost, when the jsp tries to get the task tracker object for that task, it gets a null value. The jsp needs to protect itself from nulls.

        Attachments

        1. jsp-null.patch
          3 kB
          Owen O'Malley

          Activity

            People

            • Assignee:
              omalley Owen O'Malley
              Reporter:
              omalley Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: