You said the folder may_24 might be there -- but you need to provide the
full name of a class, not just a package. A folder denotes a package. So is
there a may_24.class file? Or is the main() method in some may_24/Foo.class?
If so, then you need to run bin/hadoop jar hadoop_out_degree.jar may_24.Foo
(args...)
Creating the jar using Sun's jar program should automatically insert the
necessary manifest.
What does 'jar tf hadoop_out_degree.jar' return?
- Aaron
On Sun, May 24, 2009 at 4:54 PM, Edward J. Yoon edwardy...@apache.orgwrote:
It looks like that you miss some packages (xxx.xxx.xx.may_24). Check
the package names.
If not, try to run the hadoop_out_degree.jar with main class.
On Mon, May 25, 2009 at 8:36 AM, Kunsheng Chen ke...@yahoo.com wrote:
Hello everyone,
I am getting some issues when compiling a map-reduce program similar to
wordcount example.
I followed the instruction in the tutorial and succeeded to compile a jar
file.
The problem won't appear until I run it as below:
had...@lobo:/osr/Projects/anansi/mrjobs/src$
/osr/Projects/anansi/hadoop/bin/hadoop jar ./hadoop_out_degree.jar may_24
outout1/
java.lang.ClassNotFoundException: may_24
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:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
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:194)
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:220)
The folder 'may_24' is definitely there, I am not sure whether I missing
something when compile, do I have to add manifest file in the class folders
?
also I am confused about the error info. Could anyone give me some idea
?
Thanks in advance,
-KUn
--
Best Regards, Edward J. Yoon @ NHN, corp.
edwardy...@apache.org
http://blog.udanax.org