0 votes
in HDFS by
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

0 votes
asked Jun 26, 2023 in Hadoop by Robindeniel
0 votes
asked Jun 18, 2023 in HDFS by Robindeniel
...