Problems while building cascading application

11 views
Skip to first unread message
Message has been deleted

devaru

unread,
Apr 29, 2009, 4:27:05 AM4/29/09
to cascading-user, ch...@wensel.net
hi

we have tried to create a small application 'wordrep' using
cascading.
As per the instructions given for building on cascading site, we
unpacked the cascading-x.y.z.jar into a directory containing our
class
file, and then packed it back.


But it is showing the following errors when we run the jar


$ hadoop/bin/hadoop jar ./wordrep/build/wordrep.jar wordrep/data/
apache.200.txt
output_rep
java.lang.ClassNotFoundException: wordrep.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)


"After Building the xml file, Main class is getting created in build/
classes instead of build/classes/wordrep"


Can anyone kindly provide the correct steps to do the same?


Thanks in advance


Devika & Aruna

Chris K Wensel

unread,
Apr 29, 2009, 10:34:27 AM4/29/09
to devaru, cascading-user
Try using the ant build file that the Cascading samples use, or use
the snippet in the User Guide.

http://github.com/cwensel/cascading.samples/tree/master
http://www.cascading.org/userguide/html/ch04s02.html

--
Chris K Wensel
ch...@wensel.net
http://www.cascading.org/
http://www.scaleunlimited.com/

devaru

unread,
Apr 30, 2009, 2:25:44 AM4/30/09
to cascading-user
Hi,
Our problem got sorted. We had actually not included the package
statement in our Main.java
Thanks
Devika & Aruna

On Apr 29, 7:34 pm, Chris K Wensel <ch...@wensel.net> wrote:
> Try using the ant build file that the Cascading samples use, or use  
> the snippet in the User Guide.
>
> http://github.com/cwensel/cascading.samples/tree/masterhttp://www.cascading.org/userguide/html/ch04s02.html
> ch...@wensel.nethttp://www.cascading.org/http://www.scaleunlimited.com/- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages