@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, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static final String HELP_CMD
public int run(String[] args) throws Exception
Toolprotected YarnClient createYarnClient()
protected List<org.codehaus.jettison.json.JSONObject> getAMContainerInfoForRMWebService(Configuration conf, String appId) throws com.sun.jersey.api.client.ClientHandlerException, com.sun.jersey.api.client.UniformInterfaceException, org.codehaus.jettison.json.JSONException
com.sun.jersey.api.client.ClientHandlerExceptioncom.sun.jersey.api.client.UniformInterfaceExceptionorg.codehaus.jettison.json.JSONExceptionpublic Set<String> getMatchedContainerLogFiles(org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest request, boolean useRegex, boolean ignoreSizeLimit) throws IOException
IOExceptionpublic 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.ClientHandlerExceptioncom.sun.jersey.api.client.UniformInterfaceExceptionorg.codehaus.jettison.json.JSONExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.