MapRFSLoggingHandlerpublic abstract class DFSLoggingHandler
extends java.lang.Object
| Constructor | Description |
|---|---|
DFSLoggingHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.fs.Path[] |
getLogDir(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) |
Returns the absolute log directories that contains logs for the given
application.
|
org.apache.hadoop.fs.Path |
getLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Returns the absolute log directory that contains logs for the given
container.
|
org.apache.hadoop.fs.Path |
getLogDirForWrite(java.lang.String relativeContainerLogDir) |
Returns the absolute log directory to write to.
|
org.apache.hadoop.fs.Path |
getLogFileForWrite(org.apache.hadoop.fs.Path stdOutDir,
java.lang.String stdOutFile) |
|
abstract java.lang.String |
getStdErrCommand(java.lang.String stderrFile) |
Returns the stderr redirection command to be used.
|
abstract java.lang.String |
getStdOutCommand(java.lang.String stdoutFile) |
Returns the stdout redirection command to be used.
|
public abstract java.lang.String getStdOutCommand(java.lang.String stdoutFile)
stdoutFile - name of the file to which stdout will be redirectedpublic abstract java.lang.String getStdErrCommand(java.lang.String stderrFile)
stderrFile - name of the file to which stdout will be redirectedpublic org.apache.hadoop.fs.Path getLogDirForWrite(java.lang.String relativeContainerLogDir)
throws java.io.IOException
relativeContainerLogDir - path of the specific container directory to write tojava.io.IOExceptionpublic org.apache.hadoop.fs.Path[] getLogDir(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
throws java.io.IOException
applicationId - application IDjava.io.IOExceptionpublic org.apache.hadoop.fs.Path getLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws java.io.IOException
containerId - container IDjava.io.IOExceptionpublic org.apache.hadoop.fs.Path getLogFileForWrite(org.apache.hadoop.fs.Path stdOutDir,
java.lang.String stdOutFile)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.