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

Chris Douglas edited comment on MAPREDUCE-6103 at 9/25/14 12:11 AM:
--------------------------------------------------------------------

Thanks [~chris.douglas] for taking a look. I realized that there was no easy 
way to specify the reservation id so added support for it in YARNRunner so now 
users can specify reservation id just like they currently do queue names.

For example to run the sample _pi_ job with queue _sla_ and reservation 
*reservation_1411602647912_0001*, you now can
{noformat}
 hadoop jar 
hadoop-3.0.0-SNAPSHOT/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.0.0-SNAPSHOT.jar
 pi \
  -Dmapreduce.job.queuename=sla \
  -Dmapreduce.job.reservation.id=reservation_1411602647912_0001 \
  -Dyarn.app.mapreduce.am.resource.mb=1024 \
  3 1000000000
{noformat}


was (Author: subru):
Thanks [~chris.douglas] for taking a look. I realized that there was no easy 
way to specify the reservation id so added support for it in YARNRunner so now 
users can specify reservation id just like they currently do queue names.

For example to run the sample _pi_ job with queue _sla_ and reservation **, you 
now can
 hadoop jar 
hadoop-3.0.0-SNAPSHOT/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.0.0-SNAPSHOT.jar
 pi -Dmapreduce.job.queuename=sla 
-Dmapreduce.job.reservation.id=reservation_1411602647912_0001 
-Dyarn.app.mapreduce.am.resource.mb=1024 3 1000000000

> Adding reservation APIs to resource manager delegate
> ----------------------------------------------------
>
>                 Key: MAPREDUCE-6103
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6103
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>            Reporter: Subru Krishnan
>            Assignee: Subru Krishnan
>         Attachments: MR-6103.patch, MR-6103.patch
>
>
> YARN-1051 introduces the ReservationSystem and the corresponding APIs for 
> create/update/delete ops. The MR resource manager delegate needs to to be 
> updated with the APIs.



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

Reply via email to