Skip to main content

Process Flow of Map Reduce and Map Reduce Life Cycle

Map Reduce is heart of Hadoop Process and it is meant for processing huge data. We can see process flow and Life Cycle of Map Reduce.

PhaseInputOutput
MapperKey, ValueKey, Value
Sort & ShuffleKey, ValueKey, List(Values)
ReducerKey, List(Values)Key, Value

Map Reduce Life Cycle:

Job Tracker and Task Tracker are two daemons which are primarily responsible for Map Reduce Job Execution. Below are the steps that taken place during the Map Reduce process. 

  • When the client submits input which is in the form of .jar file (driver code, mapper code and      reducer code) will be received by Job Tracker always.
  • By taking mapper business logic from the jar file, Job Tracker will initiate mapper phase on all  the available Task Trackers.
  • Once the assigned Task Trackers are done with mapper phase completely (100%), they will send status to the Job Tracker.
  • Upon the completion of the mapper task (100%), Job Tracker will initiate Sort & Shuffle phase on the mapper outputs.
  • Once Sort & Shuffle is completely done (100%), Job Tracker will initiate reducer phase on all the Task Trackers by taking the business logic from the Jar file
  • Once all the assigned Task Trackers done with reducer processing (100%), they will respond back Job Tracker with their outputs. Job Tracker will consolidate the final output and sends the report the client. 

Comments

Popular posts from this blog

Photo : Savitri during her last days

Even after 4 decades of her death, people are very much interested to watched her (Savitri) biopic. Mahanati turned to be stupendous success. On eve of remembering Savitri, here we posted Savitri photo. The photo seems her last days. The man stand behind Savitri is Gemini Ganeshan who married Savitri. It seems that she suffered bad days during her last days.

Difference between DELETE and TRUNCATE

This is the common interview question for every SQL Developer and DBA position. DELETE TRUNCATE DML (Data Manipulation Language) Command. DDL (Data Definition Language) Command. It can be rollback. It can't be rollback. Using DELETE we can remove some or all records from the table. We can use WHERE clause with it. Using TRUNCATE we can remove all records from the table at once. We can't use WHERE clause with it. DELETE command is slow in performance. TRUNCATE command is super faster in performance. All deleted Triggers fire on DELETE command. No Trigger can be fired on TRUNCATE command. DELETE can't reset high water mark. TRUNCATE can reset high water mark. DELETE can't release the space from the table. TRUNCATE can release the space from the table.

Why Brazil has privilege to speak first at UN?

UN General Assembly (UNGA) has conducted its annual sessions since it’s inception in September and October every year. Head of the 193 member nations would address the global issues. 76 th UN General Assembly (UNGA) sessions are going on from September 14 th to 30 th in New York. United Nations was formed in 1945 after the completion of World War II. As per the UN Rules of Procedure, sessions normally commence on "the Tuesday of the third week in September, counting from the first week that contains at least one working day. One nation can always open in every UN General Assembly (UNGA) session for 6 decades of United Nations history.   Brazil has been the first country to speak in the UNGA for 67 years, despite not being first alphabetically. This has been a tradition since the 10 th UNGA session in 1955. Brazil is not either a host nation or first in alphabetical order. Brazil is not even a permanent member of the UN Security Council. Why the nation has received special ...