hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick King (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-120) Reading an ArrayWriter does not work because valueClass does not get initialized
Date Wed, 05 Apr 2006 06:47:00 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-120?page=comments#action_12373232 ] 

Dick King commented on HADOOP-120:

I realized that, of course, but I'm not expecting a whole lot of small ArrayWritable's .

Owen O'Malley's solution has the problem that ArrayWritables can themselves contain ArrayWritables.
 We might, for example, want to have a two-component ArrayWritable where there are some integers
and some UTF8s,  so we need a class

  public class ArrayOfArrayOfSomeIntsAndSomeUTF8s extends ArrayWritable
     ... filling this in gives me a headache


> Reading an ArrayWriter does not work because valueClass does not get initialized
> --------------------------------------------------------------------------------
>          Key: HADOOP-120
>          URL: http://issues.apache.org/jira/browse/HADOOP-120
>      Project: Hadoop
>         Type: Bug

>   Components: io
>  Environment: Red Hat  
>     Reporter: Dick King
>  Attachments: hadoop-120-fix.patch
> If you have a Reducer whose value type is an ArrayWriter it gets enstreamed alright but
at reconstruction type when ArrayWriter::readFields(DataInput in) runs on a DataInput that
has a nonempty ArrayWriter , newInstance fails trying to instantiate the null class.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message