You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2006/09/20 20:50:25 UTC
[jira] Commented: (HADOOP-549) readStringArray bug
[ http://issues.apache.org/jira/browse/HADOOP-549?page=comments#action_12436306 ]
Owen O'Malley commented on HADOOP-549:
--------------------------------------
This is not a bug in readStringArray, it is a bug inTaskReport's serialization. The _fix_ is to use read/writeStringArray.
> readStringArray bug
> -------------------
>
> Key: HADOOP-549
> URL: http://issues.apache.org/jira/browse/HADOOP-549
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Reporter: Michel Tourn
> Attachments: readstringarray.patch
>
>
> TaskReport[] rep = jc.getMapTaskReports(jobId);
> I get de/serialization problems:
> This change suggested by Owen fixes it:
> - new ObjectWritable(diagnostics).write(out);
> + WritableUtils.writeStringArray(out, diagnostics);
> - ObjectWritable wrapper = new ObjectWritable();
> - wrapper.readFields(in);
> - diagnostics = (String[])wrapper.get();
> + diagnostics = WritableUtils.readStringArray(in);
> java.lang.NullPointerException
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:174)
> at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:59)
> at org.apache.hadoop.mapred.TaskReport.readFields(TaskReport.java:64)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:225)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:163)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:210)
> at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:59)
> at org.apache.hadoop.ipc.Client$Connection.run(Client.java:256)
> 2006-09-19 08:44:31,059 WARN ipc.Server (Server.java:run(493)) - handler output error
> java.nio.channels.ClosedChannelException
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira