Lavkesh Lahngir created MAPREDUCE-6422:
------------------------------------------

             Summary: 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


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)

Reply via email to