You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Minho Kim (JIRA)" <ji...@apache.org> on 2015/08/06 13:05:04 UTC

[jira] [Commented] (HAMA-963) ArrayIndexOutOfBoundsException occurs when tasks are greater than splits

    [ https://issues.apache.org/jira/browse/HAMA-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659830#comment-14659830 ] 

Minho Kim commented on HAMA-963:
--------------------------------

This problem occurs when taskid.id was wrong.
Minimum value of taskid.id is always set to 2. So splits array index is out of range.
I'll find out the value where to be initialized and then I'll fix it.

> ArrayIndexOutOfBoundsException occurs when tasks are greater than splits
> ------------------------------------------------------------------------
>
>                 Key: HAMA-963
>                 URL: https://issues.apache.org/jira/browse/HAMA-963
>             Project: Hama
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Edward J. Yoon
>            Priority: Blocker
>             Fix For: 0.7.1
>
>
> ArrayIndexOutOfBoundsException occurs when the number of tasks are greater than the number of splits at ApplicationMaster 950 line.
> {code}
>       assignedSplit = splits[taskid.id];
> {code}
> There are two options: Option1. launch additional tasks without input split.
> Option2. adjust the number of tasks as number of input splits.
> I prefer the option 1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)