hadoop - Error in Multiple Input Path in MapReduce -
i writing multiple input mapreduce program in eclipse, below part of code lines
code:
path map1=new path(args[0]); path map2=new path(args[1]); multipleinputs.**addinputpath**(job,map1, textinputformat.class,mapper1.class); multipleinputs.**addinputpath**(job,map2, textinputformat.class,mapper2.class);
in "addinputpath" getting error below,
error : method addinputpath(job, path, class, class) in type multipleinputs not applicable arguments (job, path, class, class)
can on these?
please find code in below link
https://www.dropbox.com/s/fm3m0ed4gh6jy98/code
regards, vishwa
what can tell have wrongly imported incompatible,
import org.apache.hadoop.mapred.textinputformat;
which should have been,
import org.apache.hadoop.mapreduce.lib.input.textinputformat;
hadoop offers 2 apis create job, 1 belongs org.apache.hadoop.mapred , other org.apache.hadoop.mapreduce. think using latter , that's 1 should import.
Comments
Post a Comment