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

Switch to Threaded View
Avro >> mail # user >> Unable to generate-sources with IDL and JSON

Copy link to this message
Unable to generate-sources with IDL and JSON
I use maven plugin with avro to generate classes out of IDL files for
protocol. But for schemas avro suport only JSON as I recon so I decided
to go for avsc. I use import in protocol AVDL file to import AVSC file.

However when in pom.xml I add 'schema' or 'protocol' goals next to
'idl-protocol' so it looks like this:

//When i comment out two below lines and use only AVDL all works fine
but when i try tu use avsc i got error
//This goal only with only AVDL works fine

I got an error:
[ERROR] Failed to execute goal
org.apache.avro:avro-maven-plugin:1.7.5:schema (schemas) on project
Network: Execution schemas of goal
org.apache.avro:avro-maven-plugin:1.7.5:schema failed:
org.codehaus.jackson.JsonParseException: Unexpected character ('@' (code
64)): expected a valid value (number, String, array, object, 'true',
'false' or 'null')
[ERROR] at [Source:
line: 4, column: 2]
[ERROR] -> [Help 1]
Line 4 column 2 is where i got in my avdl file:

What is wrong, is it a bug ?