public class HDFSLogStore extends HadoopFileSystemLogStore
LogStore implementation for HDFS, which uses Hadoop FileContext API's to
provide the necessary atomic and durability guarantees:
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_ABSTRACT_FILE_SYSTEM_EXCEPTION_MESSAGE |
| Constructor and Description |
|---|
HDFSLogStore(org.apache.hadoop.conf.Configuration hadoopConf) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
isPartialWriteVisible(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Whether a partial write is visible for the underlying file system of `path`.
|
void |
write(org.apache.hadoop.fs.Path path,
java.util.Iterator<String> actions,
Boolean overwrite,
org.apache.hadoop.conf.Configuration hadoopConf)
:: DeveloperApi ::
Write the given `actions` to the given `path` with or without overwrite as indicated.
|
listFrom, read, resolvePathOnPhysicalStorageinitHadoopConfpublic static final String NO_ABSTRACT_FILE_SYSTEM_EXCEPTION_MESSAGE
public HDFSLogStore(org.apache.hadoop.conf.Configuration hadoopConf)
public void write(org.apache.hadoop.fs.Path path,
java.util.Iterator<String> actions,
Boolean overwrite,
org.apache.hadoop.conf.Configuration hadoopConf)
throws java.io.IOException
LogStoreFileAlreadyExistsException exception if the
file already exists and overwrite = false. Furthermore, if isPartialWriteVisible returns false,
implementation must ensure that the entire file is made visible atomically, that is,
it should not generate partial files.public Boolean isPartialWriteVisible(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration hadoopConf)
LogStoreisPartialWriteVisible in class LogStore