Hi Good catch. It seems that in GoraCompiler, the call to Schema.getValueType() is wrong for arrays. I have created a one-liner at https://issues.apache.org/jira/browse/GORA-63.
Thanks, Enis On Sat, Nov 26, 2011 at 11:34 AM, Lewis John Mcgibbney < [email protected]> wrote: > Hi, > > Can someone else please the following: > Checkout trunk, after compiling and installing run > bin/compile-examples.sh > > I get the following > > lewis@lewis-01:~/ASF/gora$ bin/compile-examples.sh > Compiling gora-core/src/examples/avro/employee.json > Compiling gora-core/src/examples/avro/tokendatum.json > Compiling gora-core/src/examples/avro/webpage.json > Exception in thread "main" org.apache.avro.SchemaParseException: Map has no > values type: {"type":"map","items":"string"} > at org.apache.avro.Schema.parse(Schema.java:938) > at org.apache.avro.Schema.parse(Schema.java:912) > at org.apache.avro.Schema.parse(Schema.java:796) > at > org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62) > at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448) > Compiling gora-core/src/examples/avro/webpage.json~ > Exception in thread "main" org.apache.avro.SchemaParseException: Array has > no items type: {"type":"array","values":"string"} > at org.apache.avro.Schema.parse(Schema.java:933) > at org.apache.avro.Schema.parse(Schema.java:912) > at org.apache.avro.Schema.parse(Schema.java:796) > at > org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62) > at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448) > > Am I meant to be doing something before hand? > > -- > *Lewis* >
