Class AMWebServices
java.lang.Object
org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()getJobAttempts(String jid) getJobConf(javax.servlet.http.HttpServletRequest hsr, String jid) getJobCounters(javax.servlet.http.HttpServletRequest hsr, String jid) static JobgetJobFromContainerIdString(String cid, AppContext appCtx) static JobgetJobFromJobIdString(String jid, AppContext appCtx) convert a job id string to an actual job and handle all the error checking.getJobs(javax.servlet.http.HttpServletRequest hsr) getJobTask(javax.servlet.http.HttpServletRequest hsr, String jid, String tid) getJobTaskAttemptId(javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId) getJobTaskAttemptIdCounters(javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId) getJobTaskAttempts(javax.servlet.http.HttpServletRequest hsr, String jid, String tid) getJobTaskAttemptState(javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId) getJobTasks(javax.servlet.http.HttpServletRequest hsr, String jid, String type) getSingleTaskCounters(javax.servlet.http.HttpServletRequest hsr, String jid, String tid) static TaskAttemptgetTaskAttemptFromTaskAttemptString(String attId, Task task) convert a task attempt id string to an actual task attempt and handle all the error checking.static TaskgetTaskFromTaskIdString(String tid, Job job) convert a task id string to an actual task and handle all the error checking.protected javax.ws.rs.core.ResponsekillJobTaskAttempt(TaskAttempt ta, org.apache.hadoop.security.UserGroupInformation callerUGI, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseupdateJobTaskAttemptState(JobTaskAttemptState targetState, javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId)
-
Constructor Details
-
AMWebServices
-
-
Method Details
-
getJobFromContainerIdString
public static Job getJobFromContainerIdString(String cid, AppContext appCtx) throws org.apache.hadoop.yarn.webapp.NotFoundException - Throws:
org.apache.hadoop.yarn.webapp.NotFoundException
-
getJobFromJobIdString
public static Job getJobFromJobIdString(String jid, AppContext appCtx) throws org.apache.hadoop.yarn.webapp.NotFoundException convert a job id string to an actual job and handle all the error checking.- Throws:
org.apache.hadoop.yarn.webapp.NotFoundException
-
getTaskFromTaskIdString
public static Task getTaskFromTaskIdString(String tid, Job job) throws org.apache.hadoop.yarn.webapp.NotFoundException convert a task id string to an actual task and handle all the error checking.- Throws:
org.apache.hadoop.yarn.webapp.NotFoundException
-
getTaskAttemptFromTaskAttemptString
public static TaskAttempt getTaskAttemptFromTaskAttemptString(String attId, Task task) throws org.apache.hadoop.yarn.webapp.NotFoundException convert a task attempt id string to an actual task attempt and handle all the error checking.- Throws:
org.apache.hadoop.yarn.webapp.NotFoundException
-
get
@GET @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public AppInfo get() -
getAppInfo
@GET @Path("/info") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public AppInfo getAppInfo() -
getBlacklistedNodes
@GET @Path("/blacklistednodes") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public BlacklistedNodesInfo getBlacklistedNodes() -
getJobs
@GET @Path("/jobs") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public JobsInfo getJobs(@Context javax.servlet.http.HttpServletRequest hsr) -
getJob
-
getJobAttempts
@GET @Path("/jobs/{jobid}/jobattempts") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public AMAttemptsInfo getJobAttempts(@PathParam("jobid") String jid) -
getJobCounters
@GET @Path("/jobs/{jobid}/counters") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public JobCounterInfo getJobCounters(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid) -
getJobConf
-
getJobTasks
-
getJobTask
-
getSingleTaskCounters
@GET @Path("/jobs/{jobid}/tasks/{taskid}/counters") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public JobTaskCounterInfo getSingleTaskCounters(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid) -
getJobTaskAttempts
@GET @Path("/jobs/{jobid}/tasks/{taskid}/attempts") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public TaskAttemptsInfo getJobTaskAttempts(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid) -
getJobTaskAttemptId
@GET @Path("/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public TaskAttemptInfo getJobTaskAttemptId(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid, @PathParam("attemptid") String attId) -
getJobTaskAttemptState
@GET @Path("/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}/state") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public JobTaskAttemptState getJobTaskAttemptState(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid, @PathParam("attemptid") String attId) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
updateJobTaskAttemptState
@PUT @Path("/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}/state") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) @Consumes({"application/json","application/xml"}) public javax.ws.rs.core.Response updateJobTaskAttemptState(JobTaskAttemptState targetState, @Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid, @PathParam("attemptid") String attId) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getJobTaskAttemptIdCounters
@GET @Path("/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}/counters") @Produces({"application/json; charset=utf-8","application/xml; charset=utf-8"}) public JobTaskAttemptCounterInfo getJobTaskAttemptIdCounters(@Context javax.servlet.http.HttpServletRequest hsr, @PathParam("jobid") String jid, @PathParam("taskid") String tid, @PathParam("attemptid") String attId) -
killJobTaskAttempt
protected javax.ws.rs.core.Response killJobTaskAttempt(TaskAttempt ta, org.apache.hadoop.security.UserGroupInformation callerUGI, javax.servlet.http.HttpServletRequest hsr) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-