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
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述
今天在寫java API的MapReduce操作時,出現了Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not的錯誤
錯誤原因
導錯了包,JobConf是舊API使用的。導入的錯誤的包是org.apache.hadoop.mapred.FileInputFormat
解決方法
導入org.apache.hadoop.mapreduce.lib.input.FileInputFormat包,替換掉
import org.apache.hadoop.mapred.FileInputFormat;
總結
以上是生活随笔為你收集整理的MapReduce操作时Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java redis id生成器_基于r
- 下一篇: ftp服务器复制粘贴文件夹,ftp服务器