You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ramya Sunil (JIRA)" <ji...@apache.org> on 2013/05/07 02:18:16 UTC
[jira] [Resolved] (MAPREDUCE-858) NPE in heartbeat if
"mapred.job.tracker.history.completed.location" is not writable
[ https://issues.apache.org/jira/browse/MAPREDUCE-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramya Sunil resolved MAPREDUCE-858.
-----------------------------------
Resolution: Fixed
This is no longer an issue. JT gracefully shuts down if mapred.job.tracker.history.completed.location is not writable.
> NPE in heartbeat if "mapred.job.tracker.history.completed.location" is not writable
> ------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-858
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-858
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: jobtracker
> Affects Versions: 0.20.1, 0.21.0
> Reporter: Ramya Sunil
> Priority: Minor
>
> If "mapred.job.tracker.history.completed.location" has been configured to write to a location which is not writable by JT, NullPointerException is thrown in TT heartbeat. Below is the Exception obtained:
> {noformat}
> 2009-08-13 07:56:02,815 INFO org.apache.hadoop.ipc.Server: IPC Server handler <handler> on <port>, call heartbeat(org.apache.hadoop.mapred.TaskTrackerStatus@1e7a6ae, false, false, true, 1775) from <ip>:<port>: error: java.io.IOException: java.lang.NullPointerException
> java.io.IOException: java.lang.NullPointerException
> at org.apache.hadoop.mapred.JobHistory$JobHistoryFilesManager.moveToDone(JobHistory.java:215)
> at org.apache.hadoop.mapred.JobHistory$JobInfo.markCompleted(JobHistory.java:1071)
> at org.apache.hadoop.mapred.JobTracker.finalizeJob(JobTracker.java:2413)
> at org.apache.hadoop.mapred.JobInProgress.garbageCollect(JobInProgress.java:2729)
> at org.apache.hadoop.mapred.JobInProgress.jobComplete(JobInProgress.java:2327)
> at org.apache.hadoop.mapred.JobInProgress.completedTask(JobInProgress.java:2259)
> at org.apache.hadoop.mapred.JobInProgress.updateTaskStatus(JobInProgress.java:957)
> at org.apache.hadoop.mapred.JobTracker.updateTaskStatuses(JobTracker.java:3946)
> at org.apache.hadoop.mapred.JobTracker.processHeartbeat(JobTracker.java:3123)
> at org.apache.hadoop.mapred.JobTracker.heartbeat(JobTracker.java:2861)
> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:396)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
> {noformat}
> Instead of an NPE, it would be helpful if an useful error message is logged.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira