public class FlinkS3PrestoFileSystem extends FlinkS3FileSystem
FlinkS3PrestoFileSystem
provides custom recursive deletion functionality to work around a
bug in the internally used Presto file system.
https://github.com/prestodb/presto/issues/17416
FileSystem.WriteMode
S3_MULTIPART_MIN_PART_SIZE
Constructor and Description |
---|
FlinkS3PrestoFileSystem(org.apache.hadoop.fs.FileSystem hadoopS3FileSystem,
String localTmpDirectory,
String entropyInjectionKey,
int entropyLength,
S3AccessHelper s3UploadHelper,
long s3uploadPartSize,
int maxConcurrentUploadsPerStream) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Path path,
boolean recursive)
Delete a file.
|
createRecoverableWriter, generateEntropy, getEntropyInjectionKey, getKind, getLocalTmpDir
create, create, exists, getDefaultBlockSize, getFileBlockLocations, getFileStatus, getHadoopFileSystem, getHomeDirectory, getUri, getWorkingDirectory, isDistributedFS, listStatus, mkdirs, open, open, rename, toHadoopPath
create, get, getDefaultFsUri, getLocalFileSystem, getUnguardedFileSystem, initialize, initialize, initOutPathDistFS, initOutPathLocalFS
public FlinkS3PrestoFileSystem(org.apache.hadoop.fs.FileSystem hadoopS3FileSystem, String localTmpDirectory, @Nullable String entropyInjectionKey, int entropyLength, @Nullable S3AccessHelper s3UploadHelper, long s3uploadPartSize, int maxConcurrentUploadsPerStream)
public boolean delete(Path path, boolean recursive) throws IOException
FileSystem
delete
in class HadoopFileSystem
path
- the path to deleterecursive
- if path is a directory and set to true
, the directory is
deleted else throws an exception. In case of a file the recursive can be set to either
true
or false
true
if delete is successful, false
otherwiseIOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.