public class ContainerLogsUtils
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
ContainerLogsUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<org.apache.hadoop.fs.Path> |
getContainerLogDirs(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String remoteUser,
Context context) |
Finds the directories that logs for the given container are stored
on.
|
static org.apache.hadoop.fs.Path |
getContainerLogFile(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String fileName,
java.lang.String remoteUser,
Context context) |
Finds the log file with the given filename for the given container.
|
static long |
getFileLength(org.apache.hadoop.fs.Path logFile,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Context context) |
|
static org.apache.hadoop.fs.Path[] |
getFilesInDir(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Context context) |
|
static java.io.InputStream |
openLogFileForRead(java.lang.String containerIdStr,
org.apache.hadoop.fs.Path logFile,
java.lang.String remoteUser,
Context context) |
public static java.util.List<org.apache.hadoop.fs.Path> getContainerLogDirs(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String remoteUser,
Context context)
throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionpublic static org.apache.hadoop.fs.Path getContainerLogFile(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String fileName,
java.lang.String remoteUser,
Context context)
throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionpublic static java.io.InputStream openLogFileForRead(java.lang.String containerIdStr,
org.apache.hadoop.fs.Path logFile,
java.lang.String remoteUser,
Context context)
throws java.io.IOException
java.io.IOExceptionpublic static long getFileLength(org.apache.hadoop.fs.Path logFile,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Context context)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.fs.Path[] getFilesInDir(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Context context)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.