You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Min Zhou <co...@gmail.com> on 2009/09/12 11:07:18 UTC
how can i include another files in a .avsc?
Hi all,
how can i include another files for import outer schemas in a .avsc?
Thanks,
Min
--
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.
My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com
Re: how can i include another files in a .avsc?
Posted by Doug Cutting <cu...@apache.org>.
Min Zhou wrote:
> how can i include another files for import outer schemas in a .avsc?
The recommended way is to use a pre-processor to generate the .avsc file.
For example, the following directory uses the m4 pre-processor to
include the file MD5.js when generating HandshakeRequest.avpr and
HandshakeResponse.avpr.
http://svn.apache.org/viewvc/hadoop/avro/trunk/src/schemata/org/apache/avro/ipc/
The generation is done by the "schemata" task of build.xml:
http://svn.apache.org/viewvc/hadoop/avro/trunk/build.xml?view=annotate#l175
Doug