Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Avro Client-Server - generic vs specific

michał 2013-09-30, 10:32
Doug Cutting 2013-09-30, 21:08
michał 2013-10-01, 11:24
Doug Cutting 2013-10-01, 16:32
michał 2013-10-01, 17:57
Copy link to this message
Re: Avro Client-Server - generic vs specific
On Tue, Oct 1, 2013 at 10:57 AM, michał <[EMAIL PROTECTED]> wrote:
> 1. Would it be possible to program client-server and generate the protocol
> classes programmatically at compile time?

Yes.  This is supported through Avro's Maven plugins by adding
something like the following to your pom.xml:


This will compile .avpr files from src/main/avro, generating .avsc and
.avpr files in target/generated-sources/avro, then compile these to
create .java files in target/generated-sources/java which will be
compiled by the normal Maven java compilation plugins.

Mick 2013-10-23, 09:53