[ 
https://issues.apache.org/jira/browse/HADOOP-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bieniosek updated HADOOP-2538:
--------------------------------------

    Attachment: hadoop-2538.patch

add a null check and warn user appropriately

> NPE in TaskLog.java
> -------------------
>
>                 Key: HADOOP-2538
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2538
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.15.0
>            Reporter: Michael Bieniosek
>         Attachments: hadoop-2538.patch
>
>
> 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
> )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to