avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1232) Output of Avro data using MapReduce with TextOutputFormat is not useful
Date Fri, 11 Jan 2013 23:36:12 GMT
Garrett Wu created AVRO-1232:

             Summary: Output of Avro data using MapReduce with TextOutputFormat is not useful
                 Key: AVRO-1232
                 URL: https://issues.apache.org/jira/browse/AVRO-1232
             Project: Avro
          Issue Type: Improvement
          Components: java
    Affects Versions: 1.7.3
            Reporter: Garrett Wu
            Priority: Minor

When using Avro data as the output key/values of a MapReduce job with TextOutputFormat, you
get output that looks like:

org.apache.avro.mapred.AvroKey@1f62000	org.apache.avro.mapred.AvroValue@1
org.apache.avro.mapred.AvroKey@1fe8c4a	org.apache.avro.mapred.AvroValue@1
org.apache.avro.mapred.AvroKey@10b85e	org.apache.avro.mapred.AvroValue@1
org.apache.avro.mapred.AvroKey@877ec817	org.apache.avro.mapred.AvroValue@1
org.apache.avro.mapred.AvroKey@3f904e5b	org.apache.avro.mapred.AvroValue@1
org.apache.avro.mapred.AvroKey@b581cda5	org.apache.avro.mapred.AvroValue@1

I think all that needs to be done is implement toString() on AvroWrapper. It should return
its datum as JSON.

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

View raw message