MapReduce操作时Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not
生活随笔
收集整理的這篇文章主要介紹了
MapReduce操作时Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
問題描述
今天在寫java API的MapReduce操作時,出現(xiàn)了Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not的錯誤
錯誤原因
導(dǎo)錯了包,JobConf是舊API使用的。導(dǎo)入的錯誤的包是org.apache.hadoop.mapred.FileInputFormat
解決方法
導(dǎo)入org.apache.hadoop.mapreduce.lib.input.FileInputFormat包,替換掉
import org.apache.hadoop.mapred.FileInputFormat;
總結(jié)
以上是生活随笔為你收集整理的MapReduce操作时Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java redis id生成器_基于r
- 下一篇: jdbc和mysql做游戏排行榜_MyS