The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Ronan Lehane
Hi All, I hope this is the right forum for this type of question so my apologies if not. I'm looking to write a map reduce program which is giving me the following compilation error: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

Re: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Harsh J
Whatever csatAnalysis.MapClass the compiler picked up, it appears to not be extending the org.apache.hadoop.mapreduce.Mapper class. From your snippets it appears that you have it all defined properly though. A common issue here has also been that people accidentally import the wrong API (mapred.*)

Re: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Ronan Lehane
Hi Harsh, Thanks for getting back so quickly. The full source code is attached as there's nothing sensitive in it. Coding wouldn't be my strong point so apologies in advance if it looks a mess. Thanks On Sat, Feb 9, 2013 at 6:09 PM, Harsh J ha...@cloudera.com wrote: Whatever

Re: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Harsh J
Your import line of Mapper has the issue. It is imported as below, which can probably be removed as it is unnecessary: import org.apache.hadoop.mapreduce.Mapper.Context; But you also would need the line below for the actual class to get found: import org.apache.hadoop.mapreduce.Mapper; Adding

Re: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Ronan Lehane
Hi Harsh, Yep I'm using Eclipse. I've edited the line below but I'm still getting the same error. I'll chance it outside of eclipse from the command line and see what happens. Thanks. On Sat, Feb 9, 2013 at 6:35 PM, Harsh J ha...@cloudera.com wrote: Your import line of Mapper has the issue.

Re: The method setMapperClass(Class? extends Mapper) in the type Job is not applicable for the arguments

2013-02-09 Thread Ronan Lehane
Thanks for that Harsh. I just have standard compilation errors now that I'll need to look into. Thanks for the help, I don't think I would have ever figured that one out. Cheers On Sat, Feb 9, 2013 at 6:40 PM, Ronan Lehane ronan.leh...@gmail.com wrote: Hi Harsh, Yep I'm using Eclipse. I've