hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: Runtime error for wordcount-like example.
Date Sun, 24 May 2009 23:54:08 GMT
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 <keyek@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:
>
> hadoop@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.
edwardyoon@apache.org
http://blog.udanax.org

Mime
View raw message