java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper

Spring JIRA | xinshengjun | 5 years ago
  1. 0

    I have set up a single-node hadoop cluster and I can run MR job successfully. If I don't set mapred.job.tracker in context.xml, it will be OK. But If I set it, it will fail with the error message: 2012-03-06 16:11:46,863 INFO [org.apache.hadoop.mapred.JobClient] - <Task Id : attempt_201203061450_0011_m_000000_0, Status : FAILED> java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:866) at org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:199) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:738) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370) at org.apache.hadoop.mapred.Child$4.run(Child.java:255) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059) at org.apache.hadoop.mapred.Child.main(Child.java:249) Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 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.conf.Configuration.getClassByName(Configuration.java:819) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:864) Did I do something wrong? The attachment is the configuration I used.

    Spring JIRA | 5 years ago | xinshengjun
    java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper
  2. 0

    I have set up a single-node hadoop cluster and I can run MR job successfully. If I don't set mapred.job.tracker in context.xml, it will be OK. But If I set it, it will fail with the error message: 2012-03-06 16:11:46,863 INFO [org.apache.hadoop.mapred.JobClient] - <Task Id : attempt_201203061450_0011_m_000000_0, Status : FAILED> java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:866) at org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:199) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:738) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370) at org.apache.hadoop.mapred.Child$4.run(Child.java:255) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059) at org.apache.hadoop.mapred.Child.main(Child.java:249) Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 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.conf.Configuration.getClassByName(Configuration.java:819) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:864) Did I do something wrong? The attachment is the configuration I used.

    Spring JIRA | 5 years ago | xinshengjun
    java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper
  3. 0

    Issue with DistributedCache

    Google Groups | 5 years ago | Denis Kreis
    java.lang.RuntimeException: java.lang.ClassNotFoundException: WordCountNewAPI$WordCountMapper
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 19#29797809

    GitHub | 3 years ago | keyboardfann
    java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.ipc.SecureRpcEngine
  6. 0

    Mapper Class not found error while executing Hadoop Program using SpringData

    Stack Overflow | 3 years ago | user2941276
    java.lang.RuntimeException: java.lang.ClassNotFoundException: com.hadoop.basics.WordMapper

  1. gehel 1 times, last 1 week ago
  2. malhobayyeb 3 times, last 6 days ago
  3. Kialandei 1 times, last 1 week ago
  4. Indri Yunita 1 times, last 1 week ago
  5. Alexandru Popa 2 times, last 2 weeks ago
47 more registered users
48 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.hadoop.examples.WordCount$TokenizerMapper

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Class.java:247)
    8 frames
  3. Hadoop
    Configuration.getClass
    1. org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:819)
    2. org.apache.hadoop.conf.Configuration.getClass(Configuration.java:864)
    2 frames