关于The method setMapperClass(Class<? extends Mapper>) in the type Job is not applicable for the argum

来源:互联网 发布:某单位网络拓扑结构图 编辑:程序博客网 时间:2024/05/24 05:30

关于The method setMapperClass(Class<? extends Mapper>) in the type Job is notapplicable for the arguments (Class<csatAnalysis.MapClass>)问题。


在编写hadoop程序的MapReduce作业代码时,在job.setMapperClass(MaxTemperature.class);中会报上述的错误,其实错误在于你编写的MaxTemperature.class类,这个类你应该是用的implements Mapper,将接口改为extends Mapper,上述错误就会消失。

阅读全文
0 0
原创粉丝点击