dkangala / hamake

Automatically exported from code.google.com/p/hamake
0 stars 0 forks source link

"examples" task does not work #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
result of "ant examples"

examples:
    [mkdir] Created dir: /Users/bird/src/hamake/hamake-j/build/test
     [exec] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/pig/backend/executionengine/ExecException
     [exec]     at 
com.codeminders.hamake.MakefileParser.parsePigCommand(MakefileParse
r.java:190)
     [exec]     at 
com.codeminders.hamake.MakefileParser.parseCommand(MakefileParser.ja
va:169)
     [exec]     at 
com.codeminders.hamake.MakefileParser.parseMapTask(MakefileParser.jav
a:136)
     [exec]     at 
com.codeminders.hamake.MakefileParser.parseTasks(MakefileParser.java:1
06)
     [exec]     at 
com.codeminders.hamake.MakefileParser.parse(MakefileParser.java:55)
     [exec]     at com.codeminders.hamake.Main.main(Main.java:98)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
     [exec]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
     [exec]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
     [exec]     at java.lang.reflect.Method.invoke(Method.java:597)
     [exec]     at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
     [exec] Caused by: java.lang.ClassNotFoundException: 
org.apache.pig.backend.executionengine.ExecException
     [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [exec]     at java.security.AccessController.doPrivileged(Native Method)
     [exec]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
     [exec]     at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
     [exec]     ... 11 more
     [exec] Result: 1

Original issue reported on code.google.com by alex.s...@gmail.com on 26 Mar 2010 at 10:23

GoogleCodeExporter commented 9 years ago
I believe we need either to pack hadoop.jar + commons to lib directory of jar 
(supported by run jar) or ask users to put hadoop.jar + commons to hadoop's lib 
directory

Original comment by lyolik1...@gmail.com on 27 Mar 2010 at 12:19

GoogleCodeExporter commented 9 years ago
ExecException - pig class. We can not redistribute pig jar with hamake. My 
suggestion
is to check whether pig classes (or some well-known pig class) are present in
classpath of hamake (that will be classpath of hadoop also, because hamake is
executed in hadoop environment) and warn user in case the class is not found.

Original comment by vorl.s...@gmail.com on 29 Mar 2010 at 12:54

GoogleCodeExporter commented 9 years ago
I fixed this locally by putting pig-0.6.0-core.jar in lib directory of hadoop 

Original comment by vorl.s...@gmail.com on 29 Mar 2010 at 12:55

GoogleCodeExporter commented 9 years ago
fixed. 
use "examples.local" or "examples.distributed" ant tasks

Original comment by abon...@gmail.com on 1 Apr 2010 at 4:49