Reply
Contributor
Posts: 55
Registered: ‎09-17-2013

is it possible to have Chain Mapper with Two mappers, both takes different input format

Hi,

 

I need to use ChainMapper for one of my use Case.

 

I have two mappers, which i need to chain. First mapper takes TextInputFormat, but second mapper has to take different InputFormat, say SequenceFileFormat,

 

how can i configure my mapreduce job for this use case.?

Posts: 1,894
Kudos: 433
Solutions: 303
Registered: ‎07-31-2013

Re: is it possible to have Chain Mapper with Two mappers, both takes different input format

You aren't looking for ChainMapper, but instead for MultipleInputs:
http://archive.cloudera.com/cdh5/cdh/5/hadoop/api/org/apache/hadoop/mapreduce/lib/input/MultipleInpu...
Contributor
Posts: 55
Registered: ‎09-17-2013

Re: is it possible to have Chain Mapper with Two mappers, both takes different input format

Hi Harsh,

 

I have to provide the output of first job as input for the second one, that is where i needed to chain mapper.

I dont think this is possible with multiple inputs.

Announcements