You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Garrett Wu (JIRA)" <ji...@apache.org> on 2013/01/12 00:38:13 UTC

[jira] [Commented] (AVRO-1232) Output of Avro data using MapReduce with TextOutputFormat is not useful

    [ https://issues.apache.org/jira/browse/AVRO-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551641#comment-13551641 ] 

Garrett Wu commented on AVRO-1232:
----------------------------------

This is using org.apache.avro.mapreduce.*
                
> 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:
> {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