@Path(value="/ws/v1/applicationhistory")
public class AHSWebServices
extends org.apache.hadoop.yarn.server.webapp.WebServices
| Constructor and Description |
|---|
AHSWebServices(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.timeline.TimelineAbout |
about(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
org.apache.hadoop.yarn.server.webapp.dao.AppsInfo |
get(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
org.apache.hadoop.yarn.server.webapp.dao.AppInfo |
getApp(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId) |
org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo |
getAppAttempt(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId) |
org.apache.hadoop.yarn.server.webapp.dao.AppAttemptsInfo |
getAppAttempts(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId) |
org.apache.hadoop.yarn.server.webapp.dao.AppsInfo |
getApps(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String stateQuery,
Set<String> statesQuery,
String finalStatusQuery,
String userQuery,
String queueQuery,
String count,
String startedBegin,
String startedEnd,
String finishBegin,
String finishEnd,
String name,
Set<String> applicationTypes) |
org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo |
getContainer(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId,
String containerId) |
javax.ws.rs.core.Response |
getContainerLogFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String containerIdStr,
String filename,
String format,
String size,
String nmId,
boolean redirectedFromNode,
boolean manualRedirection)
Returns the contents of a container's log file in plain text.
|
javax.ws.rs.core.Response |
getContainerLogsInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String containerIdStr,
String nmId,
boolean redirectedFromNode,
boolean manualRedirection)
Returns log file's name as well as current file size for a container.
|
org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo |
getContainers(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId) |
javax.ws.rs.core.Response |
getLogs(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String containerIdStr,
String filename,
String format,
String size,
String nmId,
boolean redirectedFromNode,
boolean manualRedirection) |
getApp, getApp, getApplicationAttemptReport, getApplicationAttemptsReport, getApplicationReport, getApplicationsReport, getContainer, getContainerReport, getContainersReport, getNodeHttpAddress, getUser, initForReadableEndpoints, parseApplicationAttemptId, parseApplicationId, parseContainerId, parseQueries, validateIds@Inject
public AHSWebServices(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt,
org.apache.hadoop.conf.Configuration conf)
@GET
@Path(value="/about")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.api.records.timeline.TimelineAbout about(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res)
@GET
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.AppsInfo get(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res)
@GET
@Path(value="/apps")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.AppsInfo getApps(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@QueryParam(value="state")
String stateQuery,
@QueryParam(value="states")
Set<String> statesQuery,
@QueryParam(value="finalStatus")
String finalStatusQuery,
@QueryParam(value="user")
String userQuery,
@QueryParam(value="queue")
String queueQuery,
@QueryParam(value="limit")
String count,
@QueryParam(value="startedTimeBegin")
String startedBegin,
@QueryParam(value="startedTimeEnd")
String startedEnd,
@QueryParam(value="finishedTimeBegin")
String finishBegin,
@QueryParam(value="finishedTimeEnd")
String finishEnd,
@QueryParam(value="name")
String name,
@QueryParam(value="applicationTypes")
Set<String> applicationTypes)
getApps in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/apps/{appid}")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.AppInfo getApp(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="appid")
String appId)
getApp in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/apps/{appid}/appattempts")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptsInfo getAppAttempts(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="appid")
String appId)
getAppAttempts in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/apps/{appid}/appattempts/{appattemptid}")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="appid")
String appId,
@PathParam(value="appattemptid")
String appAttemptId)
getAppAttempt in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/apps/{appid}/appattempts/{appattemptid}/containers")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="appid")
String appId,
@PathParam(value="appattemptid")
String appAttemptId)
getContainers in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/apps/{appid}/appattempts/{appattemptid}/containers/{containerid}")
@Produces(value={"application/json; charset=utf-8","application/xml; charset=utf-8"})
public org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo getContainer(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="appid")
String appId,
@PathParam(value="appattemptid")
String appAttemptId,
@PathParam(value="containerid")
String containerId)
getContainer in class org.apache.hadoop.yarn.server.webapp.WebServices@GET
@Path(value="/containers/{containerid}/logs")
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response getContainerLogsInfo(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="containerid")
String containerIdStr,
@QueryParam(value="nm.id")
String nmId,
@QueryParam(value="redirected_from_node") @DefaultValue(value="false")
boolean redirectedFromNode,
@QueryParam(value="manual_redirection") @DefaultValue(value="false")
boolean manualRedirection)
req - HttpServletRequestres - HttpServletResponsecontainerIdStr - The container IDnmId - The Node Manager NodeIdredirectedFromNode - Whether this is a redirected request from NM@GET
@Path(value="/containers/{containerid}/logs/{filename}")
@Produces(value="text/plain")
@InterfaceAudience.Public
@InterfaceStability.Unstable
public javax.ws.rs.core.Response getContainerLogFile(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="containerid")
String containerIdStr,
@PathParam(value="filename")
String filename,
@QueryParam(value="format")
String format,
@QueryParam(value="size")
String size,
@QueryParam(value="nm.id")
String nmId,
@QueryParam(value="redirected_from_node")
boolean redirectedFromNode,
@QueryParam(value="manual_redirection") @DefaultValue(value="false")
boolean manualRedirection)
req - HttpServletRequestres - HttpServletResponsecontainerIdStr - The container IDfilename - The name of the log fileformat - The content typesize - the size of the log filenmId - The Node Manager NodeIdredirectedFromNode - Whether this is the redirect request from NM@GET
@Path(value="/containerlogs/{containerid}/{filename}")
@Produces(value="text/plain; charset=utf-8")
@InterfaceAudience.Public
@InterfaceStability.Unstable
public javax.ws.rs.core.Response getLogs(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@PathParam(value="containerid")
String containerIdStr,
@PathParam(value="filename")
String filename,
@QueryParam(value="format")
String format,
@QueryParam(value="size")
String size,
@QueryParam(value="nm.id")
String nmId,
@QueryParam(value="redirected_from_node") @DefaultValue(value="false")
boolean redirectedFromNode,
@QueryParam(value="manual_redirection") @DefaultValue(value="false")
boolean manualRedirection)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.