hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cavus,M.,Fa. Post Direkt" <M.Ca...@postdirekt.de>
Subject RE: ClassNotFoundException
Date Tue, 28 Dec 2010 15:12:43 GMT
What must I do James?

-----Original Message-----
From: James Seigel [mailto:james@tynt.com] 
Sent: Tuesday, December 28, 2010 4:03 PM
To: common-user@hadoop.apache.org
Subject: Re: ClassNotFoundException

jar -tvf the jar file and double check that it is a class that is
listed. Can't be in an included jar file.

Sent from my mobile. Please excuse the typos.

On 2010-12-28, at 7:58 AM, "Cavus,M.,Fa. Post Direkt"
<M.Cavus@postdirekt.de> wrote:

> Hi,
>
> I process this command: ./hadoop jar /home/userme/hd.jar
> org.postdirekt.hadoop.WordCount gutenberg gutenberberg-output
>
>
>
> and get this why? Because I have org.postdirekt.hadoop.Map in the jar
> File.
>
>
>
> 10/12/28 15:28:30 INFO mapreduce.Job: Task Id :
> attempt_201012281524_0002_m_000000_0, Status : FAILED
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException:
> org.postdirekt.hadoop.Map
>
>            at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1128)
>
>            at
>
org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContex
> tImpl.java:167)
>
>            at
> org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:612)
>
>            at org.apache.hadoop.mapred.MapTask.run(MapTask.java:328)
>
>            at org.apache.hadoop.mapred.Child$4.run(Child.java:217)
>
>            at java.security.AccessController.doPrivileged(Native
> Method)
>
>            at javax.security.auth.Subject.doAs(Subject.java:396)
>
>            at
>
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformatio
> n.java:742)
>
>            at org.apache.hadoop.mapred.Child.main(Child.java:211)
>
> Caused by: java.lang.ClassNotFoundException: org.postdirekt.hadoop.Map
>
>            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:307)
>
>            at sun.m
>
> 10/12/28 15:28:41 INFO mapreduce.Job: Task Id :
> attempt_201012281524_0002_m_000000_1, Status : FAILED
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException:
> org.postdirekt.hadoop.Map
>
>            at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1128)
>
>            at
>
org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContex
> tImpl.java:167)
>
>            at
> org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:612)
>
>            at org.apache.hadoop.mapred.MapTask.run(MapTask.java:328)
>
>            at org.apache.hadoop.mapred.Child$4.run(Child.java:217)
>
>            at java.security.AccessController.doPrivileged(Native
> Method)
>
>            at javax.security.auth.Subject.doAs(Subject.java:396)
>
>            at
>
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformatio
> n.java:742)
>
>            at org.apache.hadoop.mapred.Child.main(Child.java:211)
>
> Caused by: java.lang.ClassNotFoundException: org.postdirekt.hadoop.Map
>
>            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:307)
>
>            at sun.m
>
> 10/12/28 15:28:53 INFO mapreduce.Job: Task Id :
> attempt_201012281524_0002_m_000000_2, Status : FAILED
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException:
> org.postdirekt.hadoop.Map
>
>            at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1128)
>
>            at
>
org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContex
> tImpl.java:167)
>
>            at
> org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:612)
>
>            at org.apache.hadoop.mapred.MapTask.run(MapTask.java:328)
>
>            at org.apache.hadoop.mapred.Child$4.run(Child.java:217)
>
>            at java.security.AccessController.doPrivileged(Native
> Method)
>
>            at javax.security.auth.Subject.doAs(Subject.java:396)
>
>            at
>
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformatio
> n.java:742)
>
>            at org.apache.hadoop.mapred.Child.main(Child.java:211)
>
> Caused by: java.lang.ClassNotFoundException: org.postdirekt.hadoop.Map
>
>            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:307)
>
>            at sun.m
>
> 10/12/28 15:29:09 INFO mapreduce.Job: Job complete:
> job_201012281524_0002
>
> 10/12/28 15:29:09 INFO mapreduce.Job: Counters: 7
>
>            Job Counters
>
>                        Data-local map tasks=4
>
>                        Total time spent by all maps waiting after
> reserving slots (ms)=0
>
>                        Total time spent by all reduces waiting after
> reserving slots (ms)=0
>
>                        Failed map tasks=1
>
>                        SLOTS_MILLIS_MAPS=45636
>
>                        SLOTS_MILLIS_REDUCES=0
>
>                        Launched map tasks=4
>
>
>

Mime
View raw message