Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Array error while generate-source


Copy link to this message
-
Array error while generate-source
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB