Hi Renato,

On Thursday, August 15, 2013, Renato Marroquín Mogrovejo <
[email protected]> wrote:
> Hey Lewis,
> Are you talking about optimizing Gora's transitive dependency?

Yes.  If your write a maven project right now the number of transitive
dependencies being pulled by Gora code is wild. IIRC we have no <scope> set
for any dependencies apart from hadoop test dep right now. It  is not a
blocking issue by any means but it is a waste of resources always pulling
loads of stuff we may not necessarily need.

Did we create a JIRA issue for that a while ago?

Yeah there is an issue for this.

https://issues.apache.org/jira/browse/GORA-161

Another one to add to the list of TODO's :)

>
> Renato M.
>
> 2013/8/15 Lewis John Mcgibbney <[email protected]>
>>
>> yes the maven default target is install... the parent project object
manager ensures that your dependencies are copied from the local .m2 repos
to the relevant /lib directory.
>> If you are adding Gora code  + module to your project pom.xml you don't
need to declare individual Gora dependencies right now as By default we
will pull these.
>> In all honesty I am not keen on this... I  don't know what others
think... as it is expensive.
>> hth
>> Best
>> Lewis
>>
>> On Thursday, August 15, 2013, Sznajder ForMailingList <
[email protected]> wrote:
>> > Thanks
>> >
>> > Compiling by
>> > 'mvn'
>> > and not by
>> > 'mvn clean compile'
>> >
>> > solved the problem
>> >
>> > Benjamin
>> >
>> >
>> > On Wed, Aug 14, 2013 at 2:44 PM, Emir Munoz <[email protected]>
wrote:
>> >>
>> >> Hi Benjamin,
>> >>
>> >>
>> >>
>> >> For me seems that you didn’t build the project using maven (i.e., mvn
clean install). Hence, you probably have an empty gora-tutorial/lib/ folder.
>> >>
>> >> If not, I would recommend you to add the bin/ folder of gora to the
PATH.
>> >>
>> >> -bash-4.1$ export PATH=$PATH:/home/gora-0.3/bin
>> >>
>> >>
>> >>
>> >> And then execute the compiler inside gora-tutorial folder.
>> >>
>> >> -bash-4.1$ gora goracompiler src/main/avro/pageview.json
src/main/java/
>> >>
>> >>
>> >>
>> >> Cheers,
>> >>
>> >> Emir
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> From: Sznajder ForMailingList [mailto:[email protected]]
>> >> Sent: 14 August 2013 11:08
>> >> To: [email protected]
>> >> Subject: Compiling Avro Schemas
>> >>
>> >>
>> >>
>> >> Hi
>> >>
>> >> I followed the tutorial given in
http://gora.apache.org/current/tutorial.html
>> >>
>> >> When reaching the section Compiling Avro schemas, the command
>> >>
>> >>
>> >>
>> >> $ bin/gora goracompiler
>> >>
>> >>
>> >>
>> >> returns me:
>> >>
>> >> -bash-4.1$ bin/gora goracompiler
gora-tutorial/src/main/avro/pageview.json gora-tutorial/src/main/java/
>> >> Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avro/Schema
>> >>         at java.lang.Class.getDeclaredMethods0(Native Method)
>> >>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
>> >>         at java.lang.Class.getMethod0(Class.java:2694)
>> >>         at java.lang.Class.getMethod(Class.java:1622)
>> >>         at
sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
>> >>         at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
>> >> Caused by: java.lang.ClassNotFoundException: org.apache.avro.Schema
>> >>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> >>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> >>         at java.security.AccessController.doPrivileged(Native Method)
>> >>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>> >>         at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> >>
>> >>
>> >> How can I fix that, please?
>> >>
>> >> Benjamin
>> >
>>
>> --
>> Lewis
>>
>
>

-- 
*Lewis*

Reply via email to