hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonal Goyal <sonalgoy...@gmail.com>
Subject Re: Retrieve and compute input splits
Date Fri, 27 Sep 2013 08:41:18 GMT
The input splits are not copied, only the information on the location of
the splits is copied to the jobtracker so that it can assign tasktrackers
which are local to the split.

Check the Job Initialization section at

To create the list of tasks to run, the job scheduler first retrieves the
input splits computed by the JobClient from the shared filesystem (step 6).
It then creates one map task for each split. The number of reduce tasks to
create is determined by the mapred.reduce.tasks property in the JobConf,
which is set by the setNumReduceTasks() method, and the scheduler simply
creates this number of reduce tasks to be run. Tasks are given IDs at this

Best Regards,
Nube Technologies <http://www.nubetech.co>


On Fri, Sep 27, 2013 at 10:55 AM, Sai Sai <saigraph@yahoo.in> wrote:

> Hi
> I have attached the anatomy of MR from definitive guide.
> In step 6 it says JT/Scheduler  retrieve  input splits computed by the
> client from hdfs.
> In the above line it refers to as the client computes input splits.
> 1. Why does the JT/Scheduler retrieve the input splits and what does it do.
> If it is retrieving the input split does this mean it goes to the block
> and reads each record
> and gets the record back to JT. If so this is a lot of data movement for
> large files.
> which is not data locality. so i m getting confused.
> 2. How does the client know how to calculate the input splits.
> Any help please.
> Thanks
> Sai

View raw message