hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-2681) NullPointerException in TaskRunner.java when system property "hadoop.log.dir" is not set
Date Thu, 17 Jul 2014 19:51:05 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14065448#comment-14065448
] 

Allen Wittenauer commented on HADOOP-2681:
------------------------------------------

We should double-check *all* of the references to hadoop.log.dir.

HADOOP-9902 gives some guarantees that this properly set, but the Java code should be more
forgiving.

> NullPointerException in TaskRunner.java when system property "hadoop.log.dir" is not
set
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-2681
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2681
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.15.2
>            Reporter: Xu Zhang
>            Priority: Minor
>              Labels: newbie
>
> Currently, NullPointerException exception is thrown on line 321 in TaskRunner.java when
system property "hadoop.log.dir" is not set.  Instead of a NullPointerException exception,
I expected a default value for "hadoop.log.dir" to be used, or to see a more meaningful error
message that could have helped me figure out what was wrong (like, telling me that I needed
to set "hadoop.log.dir" and how to do so).
> Here is one instance of such exceptions:
> WARN mapred.TaskRunner: task_200801181719_0001_m_000000_0 Child Error
> java.lang.NullPointerException
> 	at java.io.File.<init>(File.java:222)
> 	at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:321)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message