You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by David Shimon <ds...@amadesa.com> on 2011/05/01 13:18:55 UTC
How to use JsonEncoder for output serialization of AvroMapReduce?
Hi,
I am newbie.
Is there a way to make the output of AvroMapReduce to use JsonEncoder instead of BinaryEncoder?
(On org.apache.avro.mapred.AvroSerialization, it seems that the BinaryEncoder is hardcoded in the file)
Thanks,
David Shimon
Re: How to use JsonEncoder for output serialization of AvroMapReduce?
Posted by Doug Cutting <cu...@apache.org>.
The data file format is currently defined to always use the binary
encoding. The json encoding is optional.
For json, a text file with one record per line is a common format,
perhaps where the first line in the file is the schema.
Doug
On 05/01/2011 04:18 AM, David Shimon wrote:
> Hi,
>
>
>
> I am newbie.
>
>
>
> Is there a way to make the output of AvroMapReduce to use JsonEncoder
> instead of BinaryEncoder?
>
>
>
> (On org.apache.avro.mapred.AvroSerialization, it seems that the BinaryEncoder is hardcoded in the file)
>
>
>
> Thanks,
>
>
>
> *David Shimon*
>