[ 
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

        

Reply via email to