• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why is there option to set number of mappers in map reduce

 
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In hadoop map reduce there is a mapper for each block. Why is there option to set number of mappers in map reduce when it is simply the number of 64 bit blocks.(or 124 bit blocks).

thanks
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mainly for parallelism and charge, depend of the resources and context of your cluster, and size of input data for get compromise performance

http://wiki.apache.org/hadoop/HowManyMapsAndReduces
 
Monica Shiralkar
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mainly for parallelism and charge, depend of the resources and context of your cluster, and size of input data for get compromise performance




Suppose there is data of 256 MB. There will be 4 blocks of 64 MB. So the number of mappers will be 4. This is automatically decided . So what will the option to set number of mappers do?If I set it to 5 does it make sense when it should be 256/64=4 and not 5?

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic