Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ public enum WriteMode {
.put("oss", "flink-oss-fs-hadoop")
.put("s3", "flink-s3-fs-hadoop")
.put("s3", "flink-s3-fs-presto")
.put("s3", "flink-s3-fs-native")
.put("s3a", "flink-s3-fs-hadoop")
.put("s3a", "flink-s3-fs-native")
.put("s3p", "flink-s3-fs-presto")
.put("gs", "flink-gs-fs-hadoop")
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ void testKnownFSWithoutPlugins() {
exception should be:
org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file
system implementation for scheme 's3'. The scheme is directly supported by Flink through the following
plugins: flink-s3-fs-hadoop, flink-s3-fs-presto. Please ensure that each plugin resides within its own
subfolder within the plugins directory.
plugins: flink-s3-fs-hadoop, flink-s3-fs-presto, flink-s3-fs-native. Please ensure that each plugin
resides within its own subfolder within the plugins directory.
See https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/filesystems/plugins/ for more information. */
assertThatThrownBy(() -> getFileSystemWithoutSafetyNet("s3://authority/"))
.isInstanceOf(UnsupportedFileSystemSchemeException.class)
.hasMessageContaining("is directly supported")
.hasMessageContaining("flink-s3-fs-hadoop")
.hasMessageContaining("flink-s3-fs-presto")
.hasMessageContaining("flink-s3-fs-native")
.hasMessageNotContaining("no Hadoop file system to support this scheme");
}

Expand All @@ -110,14 +111,16 @@ void testKnownFSWithoutPluginsAndException() {
exception should be:
org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file
system implementation for scheme 's3'. File system schemes are supported by Flink through the following
plugin(s): flink-s3-fs-hadoop, flink-s3-fs-presto. No file system to support this scheme could be loaded.
Please ensure that each plugin is configured properly and resides within its own subfolder in the plugins directory.
plugin(s): flink-s3-fs-hadoop, flink-s3-fs-presto, flink-s3-fs-native. No file system to support this
scheme could be loaded. Please ensure that each plugin is configured properly and resides within its own
subfolder in the plugins directory.
See https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/filesystems/plugins/ for more information. */
assertThatThrownBy(() -> getFileSystemWithoutSafetyNet("s3://authority/"))
.isInstanceOf(UnsupportedFileSystemSchemeException.class)
.hasMessageContaining("File system schemes are supported")
.hasMessageContaining("flink-s3-fs-hadoop")
.hasMessageContaining("flink-s3-fs-presto")
.hasMessageContaining("flink-s3-fs-native")
.hasMessageContaining("Please ensure that each plugin is configured properly");
} finally {
FileSystem.initialize(new Configuration(), null);
Expand Down