avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Map-only conversion job
Date Tue, 12 Apr 2011 22:14:23 GMT
On 04/12/2011 02:18 PM, Markus Weimer wrote:
>> In short, the way to do this is to:
>> - use a org.apache.hadoop.mapred.Mapper<K,V,AvroWrapper<O>,NullWritable>
>> - call AvroJob.setOutputSchema(job,schema) with O's schema
>>
>> Does that make sense?  If that works for you, I can add it to the
>> javadoc.
> 
> Yes, it worked. Incidently, it also reduced my file size to 33% of my
> previous custom-avro-writable-in-sequence-file approach.

Great!  I'll update the documentation and add a test for this case.

https://issues.apache.org/jira/browse/AVRO-802

Thanks,

Doug

Mime
View raw message