[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779842#action_12779842
 ] 

Arun C Murthy commented on MAPREDUCE-1220:
------------------------------------------

bq. Would this really be that much higher performance than running locally on 
the client? If the job is really so small that it makes sense to run it in a 
single thread, then I am suspicious that the overhead described above would be 
overcome by running in the quasi-locality of the cluster, vs. just staying in 
the client and starting immediately.

Whilst I agree that applications can do it currently with LocalJobRunner, this 
jira is all about making it completely transparent to them! 

Imagine you have a large pipeline of jobs, some of which are small and other 
are not. In this case it would be a nightmare for the owner of the workflow to 
configure parts of them differently from the others. With this feature jobs 
would get the benefits without requiring heavy amounts of per-job crafting, 
capacity-planning etc.

Also lots of real-world clusters have special 'launcher' (or gateway) nodes 
which really do not have the capacity to run very many jobs via the 
LocalJobRunner.

----

bq. The client needs to have access to HDFS anyway in order to do things like 
create the InputSplits for the cluster; so what's the advantage of running a 
single-threaded process on the cluster?

Short-to-mid term we would all like to see MAPREDUCE-207 get in, this way 
InputSplits are computed in-cluster... we have talked about the 'setup' task 
computing the splits - potentially it could then turn around and run the job 
itself. 


> Implement an in-cluster LocalJobRunner
> --------------------------------------
>
>                 Key: MAPREDUCE-1220
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1220
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>          Components: client, jobtracker
>            Reporter: Arun C Murthy
>            Assignee: Arun C Murthy
>             Fix For: 0.22.0
>
>
> Currently very small map-reduce jobs suffer from latency issues due to 
> overheads in Hadoop Map-Reduce such as scheduling, jvm startup etc. We've 
> periodically tried to optimize all parts of framework to achieve lower 
> latencies.
> I'd like to turn the problem around a little bit. I propose we allow very 
> small jobs to run as a single task job with multiple maps and reduces i.e. 
> similar to our current implementation of the LocalJobRunner. Thus, under 
> certain conditions (maybe user-set configuration, or if input data is small 
> i.e. less a DFS blocksize) we could launch a special task which will run all 
> maps in a serial manner, followed by the reduces. This would really help 
> small jobs achieve significantly smaller latencies, thanks to lesser 
> scheduling overhead, jvm startup, lack of shuffle over the network etc. 
> This would be a huge benefit, especially on large clusters, to small Hive/Pig 
> queries.
> Thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to