Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Improve files from s3 without ak and sk error message (backport #49090) #49166

Merged
merged 1 commit into from
Aug 8, 2024
Merged
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 @@ -698,6 +698,12 @@ private HdfsFs getFileSystemByCloudConfiguration(CloudConfiguration cloudConfigu
// Disable cache for KS3
conf.set(FS_KS3_IMPL_DISABLE_CACHE, "true");

// select * from files("path" = "s3://bucket/file", "format" = "parquet"),
// CloudConfigurationFactory.buildCloudConfigurationForStorage() returns CloudConfiguration,
// and FileSystem.getFileSystemClass() returns "No FileSystem for scheme s3" error.
// Set fs.s3.impl to report error explicitly.
conf.set("fs.s3.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem");

FileSystem innerFileSystem = FileSystem.get(pathUri.getUri(), conf);
fileSystem.setFileSystem(innerFileSystem);
fileSystem.setConfiguration(conf);
Expand Down
Loading