hadoop运行报错

如梦似幻梦幻泡影 发布于 2017/01/31 14:04
阅读 139
收藏 1

日志:

31-01-2017 14:00:56 CST calc_package_dict ERROR - Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class mobvista.dmp.datasource.gender.CalcPackageDictMR$CalcPackageDictMapper not found
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContextImpl.java:186)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:754)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at java.security.AccessController.doPrivileged(Native Method)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at javax.security.auth.Subject.doAs(Subject.java:422)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
31-01-2017 14:00:56 CST calc_package_dict ERROR - Caused by: java.lang.ClassNotFoundException: Class mobvista.dmp.datasource.gender.CalcPackageDictMR$CalcPackageDictMapper not found
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
31-01-2017 14:00:56 CST calc_package_dict ERROR - 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)

hadoop运行报错,说是Map类找不到,但是我找了,源代码里有。

加载中
0
Feng_Yu
Feng_Yu

肯定是你的jar包没把依赖一并打进去

返回顶部
顶部