提交MR作业时,报:WordCount$TokenizerMapper not found

在windows下eclipse向虚拟机linux上的伪分布式提交MR作业时,报:WordCount$TokenizerMapper not found
如何处理。用的是apache hadoop2.7.3


17/01/24 18:06:22 DEBUG ipc.ProtobufRpcEngine: Call: getDiagnostics took 1ms
Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.mathings.WordCount$TokenizerMapper not found
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195)
    at org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContextImpl.java:186)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:745)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.lang.ClassNotFoundException: Class com.mathings.WordCount$TokenizerMapper not found
    at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)
    ... 8 more

Mathings

赞同来自:

自己解决下,终于搞定了,可以参考http://www.mathings.com/youjia ... pid98

要回复问题请先登录注册