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;

即可

posted @ 2016-09-07 09:23  时光.漫步  阅读(625)  评论(0)    收藏  举报