Created 03-13-2016 04:23 PM
Created 03-13-2016 09:50 PM
Created 03-13-2016 04:29 PM
You can't set number of mappers, it is determined by number of blocks in your dataset.
The number of maps is usually driven by the total size of the inputs, that is, the total number of blocks of the input files.
The right level of parallelism for maps seems to be around 10-100 maps per-node, although it has been set up to 300 maps for very cpu-light map tasks. Task setup takes a while, so it is best if the maps take at least a minute to execute.
Thus, if you expect 10TB of input data and have a blocksize of 128MB, you’ll end up with 82,000 maps, unless Configuration.set(MRJobConfig.NUM_MAPS, int) (which only provides a hint to the framework) is used to set it even higher.
Created 03-14-2016 10:26 AM
thanks@Artem
Created 03-13-2016 09:50 PM
Created 03-14-2016 10:26 AM
thanks @Benjamin Leonhardi