@InterfaceAudience.Private public static class AggregatedLogFormat.LogWriter extends Object implements AutoCloseable
| Constructor and Description |
|---|
LogWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(AggregatedLogFormat.LogKey logKey,
AggregatedLogFormat.LogValue logValue) |
void |
close() |
org.apache.hadoop.io.file.tfile.TFile.Writer |
getWriter() |
void |
initialize(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path remoteAppLogFile,
org.apache.hadoop.security.UserGroupInformation userUgi)
Initialize the LogWriter.
|
void |
writeApplicationACLs(Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls) |
void |
writeApplicationOwner(String user) |
public void initialize(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path remoteAppLogFile,
org.apache.hadoop.security.UserGroupInformation userUgi)
throws IOException
conf - ConfigurationremoteAppLogFile - remote log file pathuserUgi - Ugi of the userIOException - Failed to initializepublic org.apache.hadoop.io.file.tfile.TFile.Writer getWriter()
public void writeApplicationOwner(String user) throws IOException
IOExceptionpublic void writeApplicationACLs(Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls) throws IOException
IOExceptionpublic void append(AggregatedLogFormat.LogKey logKey, AggregatedLogFormat.LogValue logValue) throws IOException
IOExceptionpublic void close()
throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededException
close in interface AutoCloseableorg.apache.hadoop.hdfs.protocol.DSQuotaExceededExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.