Ensure you are sticking with either new API or old API. I'm sure you have your 
imports for the Input/Output formats mixed with mapred.* and mapreduce.* stuff. 
Stabilizing that will fix it.

In future, please send user mail to common-u...@hadoop.apache.org and not 
common-dev, which is for development discussions only.

On 29-Dec-2011, at 12:24 PM, Bhavesh Shah wrote:

> Hello,
> I am using the class MultipleInputs class in Map-Rduce program.
> 
> Syntax is :
>         MultipleInputs.addInputPath(job, path, inputFormatClass)    or
>         MultipleInputs.addInputPath(job, path, inputFormatClass, mapperClass)
> 
> I have used as:
> MultipleInputs.addInputPath(conf, new
> Path("hdfs://localhost:54310//user/hive/warehouse/testencounter/"),TextInputFormat.class,
> ReadMapper.class);
> 
> But, I am getting the error as:
> The method addInputPath(Job, Path, Class<? extends InputFormat>,
> Class<? extends Mapper>) in the type MultipleInputs is not applicable
> for
> the arguments (JobConf, Path, Class<TextInputFormat>, Class<ReadMapper>)
> 
> 
> But I am not getting what to use in place of inputFormatClass
> 
> I have also tried to set the InputFormat and OutputFormat but I am
> getting the error while I am setting OutputFormat as:
> Multiple markers at this line
>       - The method setOutputFormat(Class<? extends OutputFormat>) in the
> type JobConf is not applicable for the
>        arguments (Class<TextOutputFormat>)
>       - TextOutputFormat cannot be resolved to a type
> 
> 
> I am not getting the error. Pls help me.
> Thanks
> 
> --
> Regards,
> Bhavesh Shah

Reply via email to