AppInfoProviderpublic class LogWebService extends java.lang.Object implements AppInfoProvider
| Constructor | Description |
|---|---|
LogWebService() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.server.webapp.BasicAppInfo |
getApp(javax.servlet.http.HttpServletRequest req,
java.lang.String appId,
java.lang.String clusterId) |
Returns
BasicAppInfo object that wraps the collected information
about the application. |
javax.ws.rs.core.Response |
getContainerLogFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String containerIdStr,
java.lang.String filename,
java.lang.String format,
java.lang.String size,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
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,
java.lang.String containerIdStr,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
boolean manualRedirection) |
Returns log file's name as well as current file size for a container.
|
protected org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity |
getEntity(java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params) |
|
javax.ws.rs.core.Response |
getLogs(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String containerIdStr,
java.lang.String filename,
java.lang.String format,
java.lang.String size,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
boolean manualRedirection) |
|
java.lang.String |
getNodeHttpAddress(javax.servlet.http.HttpServletRequest req,
java.lang.String appId,
java.lang.String appAttemptId,
java.lang.String containerId,
java.lang.String clusterId) |
Returns the node HTTP address.
|
public javax.ws.rs.core.Response getContainerLogsInfo(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
java.lang.String containerIdStr,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
boolean manualRedirection)
req - HttpServletRequestres - HttpServletResponsecontainerIdStr - The container IDnmId - The Node Manager NodeIdredirectedFromNode - Whether this is a redirected request from NMclusterId - clusterId the id of the clustermanualRedirection - whether to return a response with a Location
instead of an automatic redirectionpublic java.lang.String getNodeHttpAddress(javax.servlet.http.HttpServletRequest req,
java.lang.String appId,
java.lang.String appAttemptId,
java.lang.String containerId,
java.lang.String clusterId)
AppInfoProvidergetNodeHttpAddress in interface AppInfoProviderreq - HttpServletRequest associated with the requestappId - the id of the applicationappAttemptId - the id of the application attemptcontainerId - the container idclusterId - the id of the clusterpublic org.apache.hadoop.yarn.server.webapp.BasicAppInfo getApp(javax.servlet.http.HttpServletRequest req,
java.lang.String appId,
java.lang.String clusterId)
AppInfoProviderBasicAppInfo object that wraps the collected information
about the application.getApp in interface AppInfoProviderreq - HttpServletRequest associated with the requestappId - the id of the applicationclusterId - the id of the clusterBasicAppInfo object@Public
@Unstable
public javax.ws.rs.core.Response getContainerLogFile(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
java.lang.String containerIdStr,
java.lang.String filename,
java.lang.String format,
java.lang.String size,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
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 NMclusterId - the id of the clustermanualRedirection - whether to return a response with a Location
instead of an automatic redirection@Public
@Unstable
public javax.ws.rs.core.Response getLogs(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
java.lang.String containerIdStr,
java.lang.String filename,
java.lang.String format,
java.lang.String size,
java.lang.String nmId,
boolean redirectedFromNode,
java.lang.String clusterId,
boolean manualRedirection)
@VisibleForTesting
protected org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.