hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W.P. McNeill" <bill...@gmail.com>
Subject Re: Can't print an ArrayWritable as a key even if it implements the ArrayWritable interface
Date Sun, 11 Sep 2011 19:19:01 GMT
With a bit more debugging I may have partially answered question (3) for

When I run a Hadoop job other than that called by "hadoop fs -text", an
ItemSet key is created by the org.apache.hadoop.ioWritableComparator.newKey
method, which looks like this:

  public WritableComparable newKey() {
    return ReflectionUtils.newInstance(keyClass, null);

Here keyClass is equal to ItemSet.class. Compare this to the call in the
TextRecordInputStream constructor.

      key =

This does look related to
but that is listed as fixed in 0.19.0.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message