@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) |
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 |
getResponeFromNMWebService(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
protected YarnClient createYarnClient()
protected List<org.codehaus.jettison.json.JSONObject> getAMContainerInfoForRMWebService(Configuration conf, String appId) throws Exception
Exception
public Set<String> getMatchedContainerLogFiles(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request, boolean useRegex, boolean ignoreSizeLimit) throws IOException
IOException
public com.sun.jersey.api.client.ClientResponse getResponeFromNMWebService(Configuration conf, com.sun.jersey.api.client.Client webServiceClient, org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request, String logFile)
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 © 2020 Apache Software Foundation. All rights reserved.