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

NullPointerException in TaskRunner.java when system property "hadoop.log.dir" is not set

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.15.2
    • Fix Version/s: None
    • Component/s: conf
    • Labels:

      Description

      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)

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xuzh Xu Zhang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment