org.apache.hadoop.yarn.server.nodemanager.webapp
Class NMWebServices
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.webapp.NMWebServices
public class NMWebServices
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NMWebServices
@Inject
public NMWebServices(Context nm,
ResourceView view,
org.apache.hadoop.yarn.webapp.WebApp webapp)
get
public NodeInfo get()
getNodeInfo
public NodeInfo getNodeInfo()
getNodeApps
public AppsInfo getNodeApps(String stateQuery,
String userQuery)
getNodeApp
public AppInfo getNodeApp(String appId)
getNodeContainers
public ContainersInfo getNodeContainers()
getNodeContainer
public ContainerInfo getNodeContainer(String id)
getLogs
@InterfaceAudience.Public
@InterfaceStability.Unstable
public javax.ws.rs.core.Response getLogs(String containerIdStr,
String filename)
- Returns the contents of a container's log file in plain text.
Only works for containers that are still in the NodeManager's memory, so
logs are no longer available after the corresponding application is no
longer running.
- Parameters:
containerIdStr - The container IDfilename - The name of the log file
- Returns:
- The contents of the container's log file
Copyright © 2014 Apache Software Foundation. All Rights Reserved.