Question

What dictates the number of Mappers and reducers that are run in MapReduce?

What dictates the number of Mappers and reducers that are run in MapReduce?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

No of mappers is completely depends on input format you use. For example TextInputFormat splits data based on lines. If you have 1000 lines in your input data, it will create 1000 splits. Each split is termed to be a mapper. So you cannot have a hold on number of mappers in your job.

When it comes to reducer you can always specify number of reducers you want to use in the job configuration. For example you can specify 5reducers for your job. Partitioner will decide which reducer will get what data.

When it comes to number of jobs run in parallel(either it is a mapper or reducer job), it completely depends on your cluster availablity.

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
What dictates the number of Mappers and reducers that are run in MapReduce?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT