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

Switch to Threaded View
Avro, mail # user - Array error while generate-source


Copy link to this message
-
Array error while generate-source
Mick 2013-10-24, 10:07
I got IDL based protocol:
..
record SourceData{
         string id;
     }

     array<SourceData> SourceOffer; //line13
...

I keep getting error:

Failed to execute goal
org.apache.avro:avro-maven-plugin:1.7.5:idl-protocol (schemas) on
project Network: Error compiling protocol file protocol.avdl to
/home/Mick/workspace/Network/src/main/java:
org.apache.avro.compiler.idl.ParseException: Encountered " ";" "; "" at
line 13, column 38.
[ERROR] Was expecting:
[ERROR] "(" ...
[ERROR] -> [Help 1]

What seems to be the problem? Can't I use array of 'SourceData' type?

Best,
Mick