@HimaniBansal:
By default, Mappers and Reducers are run by ResourceManager, where ResourceManager launches separate JVM container for map and reduce tasks. The uber mode in YARN 2, allows running mapper and reducers in the same JVM as the ApplicationMaster master, avoiding the overhead of launching and communicating with remote containers.