首页新闻找找看学习计划

MapReduce找不到类

0
[待解决问题]

我将主类和mapper、reducer类都放在了一个包中,但是无论我用idea还是myeclipse导出jar包都会找不到类。这是为什么呢?

 

Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.learning.mapreduce.WordMapper 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:1657)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.lang.ClassNotFoundException: Class com.learning.mapreduce.WordMapper not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)
... 8 more

and技术梦的主页 and技术梦 | 初学一级 | 园豆:17
提问于:2019-10-03 11:42
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册