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 "Lavkesh Lahngir (JIRA)" <ji...@apache.org> on 2015/07/07 12:31:05 UTC

[jira] [Updated] (MAPREDUCE-6422) Add REST API for getting all attempts for all the tasks

     [ https://issues.apache.org/jira/browse/MAPREDUCE-6422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lavkesh Lahngir updated MAPREDUCE-6422:
---------------------------------------
    Attachment: MAPREDUCE-6422.patch

> Add REST API for getting all attempts for all the tasks
> -------------------------------------------------------
>
>                 Key: MAPREDUCE-6422
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6422
>             Project: Hadoop Map/Reduce
>          Issue Type: New Feature
>            Reporter: Lavkesh Lahngir
>            Assignee: Lavkesh Lahngir
>         Attachments: MAPREDUCE-6422.patch
>
>
> Web UI has the feature where one can get all attempts for all map tasks or reduce tasks. 
> REST api seems to be missing it. 
> Should we add this in both HsWebService and AMWebService ?
> {code}
>   @GET
>   @Path("/mapreduce/jobs/{jobid}/tasks/attempts")
>   @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
>   public JobTaskAttemptsInfo getAllJobTaskAttempts(@Context HttpServletRequest hsr,
>    @PathParam("jobid") String jid, @QueryParam("type") String type) {
> }
> {code}
> We might also add queryparam on state to filter by succeeded attempts etc.
> Thoughts ?



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