@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
IOException
public void writeApplicationACLs(Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls) throws IOException
IOException
public void append(AggregatedLogFormat.LogKey logKey, AggregatedLogFormat.LogValue logValue) throws IOException
IOException
public void close() throws org.apache.hadoop.hdfs.protocol.DSQuotaExceededException
close
in interface AutoCloseable
org.apache.hadoop.hdfs.protocol.DSQuotaExceededException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.