[
https://issues.apache.org/jira/browse/AVRO-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting resolved AVRO-1232.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.7.4
Assignee: Garrett Wu
I committed this. Thanks, Garrett!
> 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
> Assignee: Garrett Wu
> Priority: Minor
> Fix For: 1.7.4
>
> Attachments: AVRO-1232.patch, AVRO-1232.patch, AVRO-1232.patch
>
>
> When using Avro data as the output key/values of a MapReduce job with
> TextOutputFormat, you get output that looks like:
> {code:none}
> 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
> {code}
> 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