Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Highlighted

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

Explorer

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.?

2 REPLIES 2

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

Master Guru
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...

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

Explorer

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.

Don't have an account?
Coming from Hortonworks? Activate your account here