我是靠谱客的博主 羞涩冬瓜,这篇文章主要介绍关于The method setMapperClass(Class) in the type Job is not applicable for the argum,现在分享给大家,希望可以做个参考。

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


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

最后

以上就是羞涩冬瓜最近收集整理的关于关于The method setMapperClass(Class) in the type Job is not applicable for the argum的全部内容,更多相关关于The内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(111)

评论列表共有 0 条评论

立即
投稿
返回
顶部