Hi Everyone,
I am a newbie to the Hadoop ecosystem and trying out cascading.
I seem to be having some trouble with executing wordcount sample file.
I did the following:
1. Set up single node Hadoop (version 0.20.2) in Ubuntu 10.04 running
on VMware
2. Downloaded the cascading src file from downloads location in
cascading.org
3. Performed the following steps successfully
> cd <path to cascading>
> ant retrieve
To build Cascading,
> ant -Dhadoop.home=<path to hadoop> compile
To make all jars:
> ant -Dhadoop.home=<path to hadoop> jar
To run all tests:
> ant -Dhadoop.home=<path to hadoop> test
4. Next, created a wordcount map reduce project in eclipse. Imported
the downloaded wordcount.tar.gz
and made a build file.
5. Next, I did the step : ant -Dcascading.home=../cascading jar. Build
Successful.
6. When I run this:hadoop jar ./build/wordcount.jar data/url+page.
200.txt output local
I get the following error:
hadoop@ubuntu:~/workspace/wordcount$ hadoop jar ./build/wordcount.jar
data/url+page.200.txt output local
Exception in thread "main" java.lang.ClassNotFoundException:
wordcount.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
Please advise.