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