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