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

NPE in TaskLog.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.15.0
    • 0.16.0
    • None
    • None

    Description

      In the tasktracker web ui, if I go to

      /tasklog?taskid=task_200801020752_0383_m_000000_0&all=true&plaintext=true

      which corresponds to a short log (<4k), I get a 500 in the web ui, and this NPE in the tasktracker log:

      2008-01-07 21:02:13,935 WARN /: /tasklog?taskid=task_200801020752_0383_m_000000_
      0&all=true&plaintext=true:
      java.lang.NullPointerException
      at org.apache.hadoop.mapred.TaskLog.getTaskLogFile(TaskLog.java:48)
      at org.apache.hadoop.mapred.TaskLog$Reader.<init>(TaskLog.java:124)
      at org.apache.hadoop.mapred.TaskLogServlet.printTaskLog(TaskLogServlet.j
      ava:44)
      at org.apache.hadoop.mapred.TaskLogServlet.doGet(TaskLogServlet.java:134
      )

      Note that /tasklog?taskid=task_200801020752_0383_m_000000_0&all=true&plaintext=true is an invalid url; the url should look like &plaintext=true&filter=STDOUT

      Attachments

        1. hadoop-2538.patch
          0.7 kB
          Michael Bieniosek

        Activity

          People

            bien Michael Bieniosek
            bien Michael Bieniosek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: