avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Schema import dependencies
Date Thu, 22 May 2014 21:57:23 GMT
You might instead use Avro IDL to define your schemas.  It permits you
define multiple schemas in a single file, so that you can determine
the order they're defined in.  It also permits ordered inclusion of
types from other files, both IDL files and schema files.

Doug

On Thu, May 22, 2014 at 10:46 AM, Hrishikesh P
<hrishi.engineer@gmail.com> wrote:
> I have a few avro schemas that I am generating the code from using the avro
> maven plugin. I have dependencies in the schemas which I was able to resolve
> by putting the schemas in separate folders and/or renaming the schema file
> names with 01-, 02-, ...etc so that the dependencies get compiled first.
> However, this only works on mac but not on RHEL (probably because of the
> different ways the directories are read on them?). Anybody knows the best
> way to handle schema dependencies? If I specify individual schema names in
> the POM in the imports section, the schemas get compiled but I have listed
> the folders and I would like to avoid listing individual files if possible.
>
> Here's a related issue: https://issues.apache.org/jira/browse/AVRO-1367
>
> Thanks in advance.

Mime
View raw message