public abstract class DFSLoggingHandler extends Object
Constructor and Description |
---|
DFSLoggingHandler() |
Modifier and Type | Method and 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(String relativeContainerLogDir)
Returns the absolute log directory to write to.
|
abstract String |
getStdErrCommand(String stderrFile)
Returns the stderr redirection command to be used.
|
abstract String |
getStdOutCommand(String stdoutFile)
Returns the stdout redirection command to be used.
|
public abstract String getStdOutCommand(String stdoutFile)
stdoutFile
- name of the file to which stdout will be redirectedpublic abstract String getStdErrCommand(String stderrFile)
stdoutFile
- name of the file to which stdout will be redirectedpublic org.apache.hadoop.fs.Path getLogDirForWrite(String relativeContainerLogDir) throws IOException
relative
- path of the specific container directory to write toIOException
public org.apache.hadoop.fs.Path[] getLogDir(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) throws IOException
applicationId
- application IDIOException
public org.apache.hadoop.fs.Path getLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException
containerId
- container IDIOException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.