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 "xieguiming (JIRA)" <ji...@apache.org> on 2012/04/24 12:11:35 UTC
[jira] [Commented] (MAPREDUCE-4124) Job Priority is not changing
[ https://issues.apache.org/jira/browse/MAPREDUCE-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260408#comment-13260408 ]
xieguiming commented on MAPREDUCE-4124:
---------------------------------------
1, When jobclient create the ApplicationSubmissionContext, set the priority to the ApplicationSubmissionContext.
{color:red}
Priority pri = Records.newRecord(Priority.class); // Job Priority.
pri.setPriority(jobConf.getInt(JobContext.PRIORITY,
YarnConfiguration.DEFAULT_PRIORITY));
appContext.setPriority(pri);
{color}
appContext.setAMContainerSpec(amContainer); // AM Container
2, Add one interface function in the ClientRMProtocol. and implement the function:
public void setJobPriority(JobID arg0, String arg1) throws IOException,
InterruptedException {
{color:red}
// call the ClientRMProtocol.setApplicationPriority()
{color}
return;
}
> Job Priority is not changing
> -----------------------------
>
> Key: MAPREDUCE-4124
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-4124
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 3.0.0
> Reporter: Nishan Shetty
> Priority: Critical
>
> 1.Submit job
> 2.Change the job priority using setPriority() or CLI command ./mapred job-set-priority <job-id> <priority>
> Observe that Job priority is not changed.
--
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