@InterfaceAudience.Public @InterfaceStability.Evolving public class LogsCLI extends Configured implements Tool
Constructor and Description |
---|
LogsCLI() |
Modifier and Type | Method and Description |
---|---|
protected YarnClient |
createYarnClient() |
protected List<org.codehaus.jettison.json.JSONObject> |
getAMContainerInfoForRMWebService(Configuration conf,
String appId) |
protected com.sun.jersey.api.client.ClientResponse |
getClientResponseFromTimelineReader(Configuration conf,
String appId) |
Set<String> |
getMatchedContainerLogFiles(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request,
boolean useRegex,
boolean ignoreSizeLimit) |
String |
getNodeHttpAddressFromRMWebString(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request) |
com.sun.jersey.api.client.ClientResponse |
getResponseFromNMWebService(Configuration conf,
com.sun.jersey.api.client.Client webServiceClient,
org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request,
String logFile) |
static void |
main(String[] args) |
int |
run(String[] args)
Execute the command with the given arguments.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static final String HELP_CMD
public int run(String[] args) throws Exception
Tool
@VisibleForTesting protected YarnClient createYarnClient()
protected List<org.codehaus.jettison.json.JSONObject> getAMContainerInfoForRMWebService(Configuration conf, String appId) throws Exception
Exception
protected com.sun.jersey.api.client.ClientResponse getClientResponseFromTimelineReader(Configuration conf, String appId) throws IOException
IOException
@VisibleForTesting public Set<String> getMatchedContainerLogFiles(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request, boolean useRegex, boolean ignoreSizeLimit) throws IOException
IOException
@VisibleForTesting public com.sun.jersey.api.client.ClientResponse getResponseFromNMWebService(Configuration conf, com.sun.jersey.api.client.Client webServiceClient, org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request, String logFile)
@VisibleForTesting public String getNodeHttpAddressFromRMWebString(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request) 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 © 2023 Apache Software Foundation. All rights reserved.