public class LogCLIHelpers extends Object implements org.apache.hadoop.conf.Configurable
Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_ON_NODE_PATTERN |
static String |
PER_LOG_FILE_INFO_PATTERN |
Constructor and Description |
---|
LogCLIHelpers() |
public static final String PER_LOG_FILE_INFO_PATTERN
public static final String CONTAINER_ON_NODE_PATTERN
@InterfaceAudience.Private @VisibleForTesting public int dumpAContainersLogs(String appId, String containerId, String nodeId, String jobOwner) throws IOException
IOException
public static String guessOwnerWithFileFormat(LogAggregationFileController fileFormat, org.apache.hadoop.yarn.api.records.ApplicationId appId, String bestGuess, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
@InterfaceAudience.Private @VisibleForTesting public static String getOwnerForAppIdOrNull(org.apache.hadoop.yarn.api.records.ApplicationId appId, String bestGuess, org.apache.hadoop.conf.Configuration conf)
@InterfaceAudience.Private @VisibleForTesting public int dumpAContainerLogsForLogType(ContainerLogsRequest options) throws IOException
IOException
@InterfaceAudience.Private @VisibleForTesting public int dumpAContainerLogsForLogType(ContainerLogsRequest options, boolean outputFailure) throws IOException
IOException
@InterfaceAudience.Private public int dumpAContainerLogsForLogTypeWithoutNodeId(ContainerLogsRequest options) throws IOException
IOException
@InterfaceAudience.Private public int dumpAllContainersLogs(ContainerLogsRequest options) throws IOException
IOException
@InterfaceAudience.Private public int printAContainerLogMetadata(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException
IOException
@InterfaceAudience.Private public void printNodesList(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException
IOException
@InterfaceAudience.Private public void printContainersList(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException
IOException
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void closePrintStream(PrintStream out)
@InterfaceAudience.Private public Set<ContainerLogFileInfo> listContainerLogs(ContainerLogsRequest options) throws IOException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.