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,
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 redirected_from_node)
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 redirected_from_node)
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 redirected_from_node) |
String |
getNMWebAddressFromRM(org.apache.hadoop.conf.Configuration configuration,
String nodeId) |
static String |
getNoRedirectWarning() |
getApplicationAttemptReport, getApplicationAttemptsReport, getApplicationReport, getApplicationsReport, getContainerReport, getContainersReport, getUser, initForReadableEndpoints, parseApplicationAttemptId, parseApplicationId, parseContainerId, parseQueries, validateIds
@Inject public AHSWebServices(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt, org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.yarn.api.records.timeline.TimelineAbout about(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
public org.apache.hadoop.yarn.server.webapp.dao.AppsInfo get(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
public org.apache.hadoop.yarn.server.webapp.dao.AppsInfo getApps(@Context javax.servlet.http.HttpServletRequest req, @Context 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, Set<String> applicationTypes)
getApps
in class org.apache.hadoop.yarn.server.webapp.WebServices
public org.apache.hadoop.yarn.server.webapp.dao.AppInfo getApp(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String appId)
getApp
in class org.apache.hadoop.yarn.server.webapp.WebServices
public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptsInfo getAppAttempts(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String appId)
getAppAttempts
in class org.apache.hadoop.yarn.server.webapp.WebServices
public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId)
getAppAttempt
in class org.apache.hadoop.yarn.server.webapp.WebServices
public org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId)
getContainers
in class org.apache.hadoop.yarn.server.webapp.WebServices
public org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo getContainer(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String containerId)
getContainer
in class org.apache.hadoop.yarn.server.webapp.WebServices
public javax.ws.rs.core.Response getContainerLogsInfo(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String containerIdStr, String nmId, boolean redirected_from_node)
req
- HttpServletRequestres
- HttpServletResponsecontainerIdStr
- The container IDnmId
- The Node Manager NodeIdredirected_from_node
- Whether this is a redirected request from NM@InterfaceAudience.Public @InterfaceStability.Unstable public javax.ws.rs.core.Response getContainerLogFile(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String containerIdStr, String filename, String format, String size, String nmId, boolean redirected_from_node)
req
- HttpServletRequestres
- HttpServletResponsecontainerIdStr
- The container IDfilename
- The name of the log fileformat
- The content typesize
- the size of the log filenmId
- The Node Manager NodeIdredirected_from_node
- Whether this is the redirect request from NM@InterfaceAudience.Public @InterfaceStability.Unstable public javax.ws.rs.core.Response getLogs(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res, String containerIdStr, String filename, String format, String size, String nmId, boolean redirected_from_node)
@InterfaceAudience.Private public static String getNoRedirectWarning()
@InterfaceAudience.Private public String getNMWebAddressFromRM(org.apache.hadoop.conf.Configuration configuration, String nodeId) throws com.sun.jersey.api.client.ClientHandlerException, com.sun.jersey.api.client.UniformInterfaceException, org.codehaus.jettison.json.JSONException
com.sun.jersey.api.client.ClientHandlerException
com.sun.jersey.api.client.UniformInterfaceException
org.codehaus.jettison.json.JSONException
Copyright © 2022 Apache Software Foundation. All rights reserved.