public class MapRFSLoggingHandler extends DFSLoggingHandler
| Constructor | Description |
|---|---|
MapRFSLoggingHandler() |
| 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) |
|
static java.lang.String |
getPathToMaprHome() |
|
java.lang.String |
getStdErrCommand(java.lang.String stderrFile) |
Returns the stderr redirection command to be used.
|
java.lang.String |
getStdOutCommand(java.lang.String filePath) |
Returns the stdout redirection command to be used.
|
public static java.lang.String getPathToMaprHome()
public java.lang.String getStdOutCommand(java.lang.String filePath)
DFSLoggingHandlergetStdOutCommand in class DFSLoggingHandlerfilePath - name of the file to which stdout will be redirectedpublic java.lang.String getStdErrCommand(java.lang.String stderrFile)
DFSLoggingHandlergetStdErrCommand in class DFSLoggingHandlerstderrFile - name of the file to which stdout will be redirectedpublic org.apache.hadoop.fs.Path getLogDirForWrite(java.lang.String relativeContainerLogDir)
throws java.io.IOException
DFSLoggingHandlergetLogDirForWrite in class DFSLoggingHandlerrelativeContainerLogDir - 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
DFSLoggingHandlergetLogDir in class DFSLoggingHandlerapplicationId - application IDjava.io.IOExceptionpublic org.apache.hadoop.fs.Path getLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws java.io.IOException
DFSLoggingHandlergetLogDir in class DFSLoggingHandlercontainerId - container IDjava.io.IOExceptionpublic org.apache.hadoop.fs.Path getLogFileForWrite(org.apache.hadoop.fs.Path stdOutDir,
java.lang.String stdOutFile)
getLogFileForWrite in class DFSLoggingHandlerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.