Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2058

FairScheduler:NullPointerException in web interface when JobTracker not initialized

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.22.0, 1.0.4
    • Fix Version/s: None
    • Component/s: contrib/fair-share
    • Labels:
      None

      Description

      When I contact the jobtracker web interface prior to the job tracker being fully initialized (say, if hdfs is still in safe mode), I get the following error:

      10/09/09 18:06:02 ERROR mortbay.log: /jobtracker.jsp
      java.lang.NullPointerException
      at org.apache.hadoop.mapred.FairScheduler.getJobs(FairScheduler.java:909)
      at org.apache.hadoop.mapred.JobTracker.getJobsFromQueue(JobTracker.java:4357)
      at org.apache.hadoop.mapred.JobTracker.getQueueInfoArray(JobTracker.java:4334)
      at org.apache.hadoop.mapred.JobTracker.getRootQueues(JobTracker.java:4295)
      at org.apache.hadoop.mapred.jobtracker_jsp.generateSummaryTable(jobtracker_jsp.java:44)
      at org.apache.hadoop.mapred.jobtracker_jsp._jspService(jobtracker_jsp.java:176)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
      at org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:857)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

      1. MAPREDUCE-2058-branch-1.patch
        0.8 kB
        Gera Shegalov
      2. MAPREDUCE-2058.patch
        0.9 kB
        Kenji Kikushima

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Dan Adkins
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development