You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by Lewis John Mcgibbney <le...@gmail.com> on 2011/11/26 20:34:06 UTC

Problem with compile-examples.sh

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*

Re: Problem with compile-examples.sh

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Enis,

Having tried out this wee patch I'm still having some problems compiling
the examples through the offending shell script.

I'm included my experiences in the issue you opened.

Thanks for now,

Lewis

On Tue, Nov 29, 2011 at 6:52 PM, Enis Söztutar <en...@gmail.com> wrote:

> 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 <
> lewis.mcgibbney@gmail.com> 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*
> >
>



-- 
*Lewis*

Re: Problem with compile-examples.sh

Posted by Enis Söztutar <en...@gmail.com>.
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 <
lewis.mcgibbney@gmail.com> 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*
>