public class HDFSDataStream extends AbstractHDFSWriter
| Constructor and Description |
|---|
HDFSDataStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Event e) |
void |
close() |
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
protected void |
doOpen(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path dstPath,
org.apache.hadoop.fs.FileSystem hdfs) |
protected org.apache.hadoop.fs.FileSystem |
getDfs(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path dstPath) |
void |
open(String filePath) |
void |
open(String filePath,
org.apache.hadoop.io.compress.CompressionCodec codec,
org.apache.hadoop.io.SequenceFile.CompressionType cType) |
void |
sync() |
getFsDesiredReplication, getNumCurrentReplicas, hflushOrSync, isUnderReplicated, registerCurrentStream, unregisterCurrentStreampublic void configure(Context context)
ConfigurableRequest the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure in interface Configurableconfigure in class AbstractHDFSWriterprotected org.apache.hadoop.fs.FileSystem getDfs(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path dstPath)
throws IOException
IOExceptionprotected void doOpen(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path dstPath,
org.apache.hadoop.fs.FileSystem hdfs)
throws IOException
IOExceptionpublic void open(String filePath) throws IOException
IOExceptionpublic void open(String filePath, org.apache.hadoop.io.compress.CompressionCodec codec, org.apache.hadoop.io.SequenceFile.CompressionType cType) throws IOException
IOExceptionpublic void append(Event e) throws IOException
IOExceptionpublic void sync()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.