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