You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2015/01/26 07:11:34 UTC
[jira] [Commented] (HAMA-848) Refactor YARN module for hadoop 2.x
stable version
[ https://issues.apache.org/jira/browse/HAMA-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291494#comment-14291494 ]
Edward J. Yoon commented on HAMA-848:
-------------------------------------
If you recevies the NullPointerException error, Please try like this:
{code}
ClusterStatus clusterStatus = getClusterStatus(true);
int maxTasks = job.getConfiguration().getInt(Constants.MAX_TASKS, 0);
if (clusterStatus != null) {
maxTasks = job.getConfiguration().getInt(Constants.MAX_TASKS_PER_JOB,
clusterStatus.getMaxTasks() - clusterStatus.getTasks());
}
{code}
Of course, this is not full solution. For the testing.
> Refactor YARN module for hadoop 2.x stable version
> --------------------------------------------------
>
> Key: HAMA-848
> URL: https://issues.apache.org/jira/browse/HAMA-848
> Project: Hama
> Issue Type: Improvement
> Affects Versions: 0.7.0
> Reporter: Edward J. Yoon
> Assignee: Minho Kim
> Labels: patch
> Fix For: 0.7.0
>
> Attachments: HAMA-HDFS2XBuild.Patch, HAMA-YARNDraft.patch, HAMA_YARN.patch
>
>
> Current yarn-module was implemented based on Hadoop 0.23.1 version. You'll need to use the Hama RPC instead of Hadoop RPC.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)