avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1232) Output of Avro data using MapReduce with TextOutputFormat is not useful
Date Thu, 17 Jan 2013 21:44:13 GMT

     [ https://issues.apache.org/jira/browse/AVRO-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Doug Cutting updated AVRO-1232:

    Attachment: AVRO-1232.patch

Here's a patch that adds a toString() method to AvroWrapper.  Is this what you had in mind?

We should probably add a test case before this is committed.
> 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
>         Attachments: 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

View raw message