You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@hadoop.apache.org by zhangguoping zhangguoping <zh...@gmail.com> on 2010/06/28 08:54:05 UTC

MultipleInputs.addInputPath throws Exception

Hi,

When I was calling following in hadoop 0.20.2,

org.apache.hadoop.mapred.lib.MultipleInputs.addInputPath();

I got following IOException:

"mapred.input.format.class is incompatible with new map API mode."


But looks like InputFormat class is mandatory for
MultipleInputs.addInputPath. How to correct it? Is there any alternatives?

Thanks,

Re: MultipleInputs.addInputPath throws Exception

Posted by Amareshwari Sri Ramadasu <am...@yahoo-inc.com>.
Moving the thread to mapreduce-user mailing list.

Are you passing a new api mapper?
If you are passing a new api mapper, and wants to use MultipleInputs, it is not supported in branch 0.20.
MultipleInputs are ported to use new api from branch 0.21.
Until 0.21 is released, you might have to use old api mapper.

Thanks
Amareshwari
On 6/28/10 12:24 PM, "zhangguoping zhangguoping" <zh...@gmail.com> wrote:

Hi,

When I was calling following in hadoop 0.20.2,

org.apache.hadoop.mapred.lib.MultipleInputs.addInputPath();

I got following IOException:

"mapred.input.format.class is incompatible with new map API mode."


But looks like InputFormat class is mandatory for
MultipleInputs.addInputPath. How to correct it? Is there any alternatives?

Thanks,