Class LogCLIHelpers
java.lang.Object
org.apache.hadoop.yarn.logaggregation.LogCLIHelpers
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintdumpAContainerLogsForLogType(ContainerLogsRequest options, boolean outputFailure) intintdumpAContainersLogs(String appId, String containerId, String nodeId, String jobOwner) intorg.apache.hadoop.conf.ConfigurationgetConf()static StringgetOwnerForAppIdOrNull(org.apache.hadoop.yarn.api.records.ApplicationId appId, String bestGuess, org.apache.hadoop.conf.Configuration conf) static StringguessOwnerWithFileFormat(LogAggregationFileController fileFormat, org.apache.hadoop.yarn.api.records.ApplicationId appId, String bestGuess, org.apache.hadoop.conf.Configuration conf) listContainerLogs(ContainerLogsRequest options) intprintAContainerLogMetadata(ContainerLogsRequest options, PrintStream out, PrintStream err) voidprintContainersList(ContainerLogsRequest options, PrintStream out, PrintStream err) voidprintNodesList(ContainerLogsRequest options, PrintStream out, PrintStream err) voidsetConf(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
PER_LOG_FILE_INFO_PATTERN
-
CONTAINER_ON_NODE_PATTERN
- See Also:
-
-
Constructor Details
-
LogCLIHelpers
public LogCLIHelpers()
-
-
Method Details
-
dumpAContainersLogs
@Private @VisibleForTesting public int dumpAContainersLogs(String appId, String containerId, String nodeId, String jobOwner) throws IOException - Throws:
IOException
-
guessOwnerWithFileFormat
public static String guessOwnerWithFileFormat(LogAggregationFileController fileFormat, org.apache.hadoop.yarn.api.records.ApplicationId appId, String bestGuess, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
getOwnerForAppIdOrNull
-
dumpAContainerLogsForLogType
@Private @VisibleForTesting public int dumpAContainerLogsForLogType(ContainerLogsRequest options) throws IOException - Throws:
IOException
-
dumpAContainerLogsForLogType
@Private @VisibleForTesting public int dumpAContainerLogsForLogType(ContainerLogsRequest options, boolean outputFailure) throws IOException - Throws:
IOException
-
dumpAContainerLogsForLogTypeWithoutNodeId
@Private public int dumpAContainerLogsForLogTypeWithoutNodeId(ContainerLogsRequest options) throws IOException - Throws:
IOException
-
dumpAllContainersLogs
- Throws:
IOException
-
printAContainerLogMetadata
@Private public int printAContainerLogMetadata(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException - Throws:
IOException
-
printNodesList
@Private public void printNodesList(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException - Throws:
IOException
-
printContainersList
@Private public void printContainersList(ContainerLogsRequest options, PrintStream out, PrintStream err) throws IOException - Throws:
IOException
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) - Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
public org.apache.hadoop.conf.Configuration getConf()- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
closePrintStream
-
listContainerLogs
@Private public Set<ContainerLogFileInfo> listContainerLogs(ContainerLogsRequest options) throws IOException - Throws:
IOException
-