Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not

发生错误的原因是导错了包

JobConf是旧API使用的,而我们需要的是新API

所以使用

import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;

代替原有的

import org.apache.hadoop.mapred.FileInputFormat;

即可

原文地址:https://www.cnblogs.com/shiguangmanbu2016/p/5932799.html