Problems while building cascading application

閲覧: 11 回
最初の未読メッセージにスキップ
メッセージは削除されました

devaru

未読、
2009/04/29 4:27:052009/04/29
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

未読、
2009/04/29 10:34:272009/04/29
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

未読、
2009/04/30 2:25:442009/04/30
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 -
全員に返信
投稿者に返信
転送
新着メール 0 件