You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Kang Xiao (JIRA)" <ji...@apache.org> on 2011/02/19 13:13:38 UTC
[jira] Created: (MAPREDUCE-2339) optimize
JobInProgress.getTaskInProgress(taskid)
optimize JobInProgress.getTaskInProgress(taskid)
------------------------------------------------
Key: MAPREDUCE-2339
URL: https://issues.apache.org/jira/browse/MAPREDUCE-2339
Project: Hadoop Map/Reduce
Issue Type: Improvement
Components: jobtracker
Affects Versions: 0.21.0, 0.20.2
Reporter: Kang Xiao
JobInProgress.getTaskInProgress(taskid) use a linner search to get the TaskInProgress object by taskid. In fact, it can be replaced by much more efficient array index operation.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2339) optimize
JobInProgress.getTaskInProgress(taskid)
Posted by "Liyin Liang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067452#comment-13067452 ]
Liyin Liang commented on MAPREDUCE-2339:
----------------------------------------
Nice patch!
A user submitted a job with more than 680,000 map tasks to our cluster. Then jobtracker become inefficient to process heartbeats, many threads are blocked and lots of requests are queued. Through jstack of JobTracker process, we find most of the time are spent on JIP.getTaskInProgress().
This patch is a good way to improve JIP.getTaskInProgress()'s performance and fix our problem.
> optimize JobInProgress.getTaskInProgress(taskid)
> ------------------------------------------------
>
> Key: MAPREDUCE-2339
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2339
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.20.2, 0.21.0
> Reporter: Kang Xiao
> Attachments: MAPREDUCE-2339.patch, MAPREDUCE-2339.patch
>
>
> JobInProgress.getTaskInProgress(taskid) use a linner search to get the TaskInProgress object by taskid. In fact, it can be replaced by much more efficient array index operation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MAPREDUCE-2339) optimize
JobInProgress.getTaskInProgress(taskid)
Posted by "Kang Xiao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kang Xiao updated MAPREDUCE-2339:
---------------------------------
Attachment: MAPREDUCE-2339.patch
Patch attached.
> optimize JobInProgress.getTaskInProgress(taskid)
> ------------------------------------------------
>
> Key: MAPREDUCE-2339
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2339
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.20.2, 0.21.0
> Reporter: Kang Xiao
> Attachments: MAPREDUCE-2339.patch
>
>
> JobInProgress.getTaskInProgress(taskid) use a linner search to get the TaskInProgress object by taskid. In fact, it can be replaced by much more efficient array index operation.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MAPREDUCE-2339) optimize
JobInProgress.getTaskInProgress(taskid)
Posted by "Kang Xiao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kang Xiao updated MAPREDUCE-2339:
---------------------------------
Attachment: MAPREDUCE-2339.patch
update patch
> optimize JobInProgress.getTaskInProgress(taskid)
> ------------------------------------------------
>
> Key: MAPREDUCE-2339
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2339
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.20.2, 0.21.0
> Reporter: Kang Xiao
> Attachments: MAPREDUCE-2339.patch, MAPREDUCE-2339.patch
>
>
> JobInProgress.getTaskInProgress(taskid) use a linner search to get the TaskInProgress object by taskid. In fact, it can be replaced by much more efficient array index operation.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-2339) optimize
JobInProgress.getTaskInProgress(taskid)
Posted by "Kang Xiao (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170897#comment-13170897 ]
Kang Xiao commented on MAPREDUCE-2339:
--------------------------------------
It's still usefull for 1.0.0 or 1.1.0 version but not for trunk. Any suggesstion?
> optimize JobInProgress.getTaskInProgress(taskid)
> ------------------------------------------------
>
> Key: MAPREDUCE-2339
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2339
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobtracker
> Affects Versions: 0.20.2, 0.21.0
> Reporter: Kang Xiao
> Attachments: MAPREDUCE-2339.patch, MAPREDUCE-2339.patch
>
>
> JobInProgress.getTaskInProgress(taskid) use a linner search to get the TaskInProgress object by taskid. In fact, it can be replaced by much more efficient array index operation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira