• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in HDFS by
Q:
Is it possible to change the number of mappers to be created in a MapReduce job?

1 Answer

0 votes
by

By default, you cannot change the number of mappers, because it is equal to the number of input splits. However, there are different ways in which you can either set a property or customize the code to change the number of mappers.

For example, if you have a 1GB file that is split into eight blocks (of 128MB each), there will only be only eight mappers running on the cluster. However, there are different ways in which you can either set a property or customize the code to change the number of mappers.

Related questions

+1 vote
asked Jun 28 in HDFS by Robindeniel
+1 vote
asked Jun 28 in HDFS by Robindeniel
...