RuntimeException:java.lang.ClassNotFoundException: Class wordcount.WordCountMapper not fonud
生活随笔
收集整理的這篇文章主要介紹了
RuntimeException:java.lang.ClassNotFoundException: Class wordcount.WordCountMapper not fonud
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在hadoop上運行Mapreduce項目jar包報錯:
Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class wordcount.WordCountMapper not foundat org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2638)at org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContextImpl.java:187)at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:759)at org.apache.hadoop.mapred.MapTask.run(MapTask.java:347)at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:174)at java.security.AccessController.doPrivileged(Native Method)at javax.security.auth.Subject.doAs(Subject.java:422)at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1729)at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:168) Caused by: java.lang.ClassNotFoundException: Class wordcount.WordCountMapper not foundat org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2542)at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2636)解決辦法:
job.setJarByClass(WordCount.class);總結
以上是生活随笔為你收集整理的RuntimeException:java.lang.ClassNotFoundException: Class wordcount.WordCountMapper not fonud的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为何战场上遗留的坦克和装甲车锈蚀严重?
- 下一篇: 如何做好一份简单而美味的烤蔬菜?