-
Notifications
You must be signed in to change notification settings - Fork 382
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
[#5973] feat(hadoop-catalog): Support credential when using fileset catalog with cloud storage #5974
Conversation
...ts/filesystem-hadoop3/src/test/java/org/apache/gravitino/filesystem/hadoop/TestGvfsBase.java
Outdated
Show resolved
Hide resolved
Do you plan to support the static credential like |
bundles/aliyun/src/main/java/org/apache/gravitino/oss/fs/OSSSessionCredentialProvider.java
Outdated
Show resolved
Hide resolved
...org/apache/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSIT.java
Outdated
Show resolved
Hide resolved
The current PR also support static credential as s3 endpoint(can replace s3-region) is a required parameter |
For option one, we need to determine the detailed credentials types in GVFS, which should be free from specific FileSystem implementations. Cloud storage related credentail should be handle in their own module. If I'm not mistaken, for the latter.
If I had to pick one, I would prefer the latter, but I doubt the ROI of this change. |
Is changing all filesystem provider a big problems? I think it's necessary and clear. For New implement
Current implement, this seems bugy, you only checked whether the credentials array is empty not checked if there are s3 credentials.
For New:
Current:
|
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureSasCredentialsProvider.java
Show resolved
Hide resolved
cc @jerryshao |
bundles/aliyun/src/main/java/org/apache/gravitino/oss/fs/OSSCredentialsProvider.java
Outdated
Show resolved
Hide resolved
bundles/aws/src/main/java/org/apache/gravitino/s3/fs/S3FileSystemProvider.java
Outdated
Show resolved
Hide resolved
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureFileSystemProvider.java
Show resolved
Hide resolved
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureSasCredentialsProvider.java
Outdated
Show resolved
Hide resolved
bundles/gcp/src/main/java/org/apache/gravitino/gcs/fs/GCSFileSystemProvider.java
Outdated
Show resolved
Hide resolved
...logs/hadoop-common/src/main/java/org/apache/gravitino/catalog/hadoop/fs/CredentialUtils.java
Outdated
Show resolved
Hide resolved
...va/org/apache/gravitino/filesystem/hadoop/DefaultGravitinoFileSystemCredentialsProvider.java
Outdated
Show resolved
Hide resolved
...hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java
Outdated
Show resolved
Hide resolved
.../gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java
Show resolved
Hide resolved
.../gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemOSSCredentialIT.java
Outdated
Show resolved
Hide resolved
...e/gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemS3CredentialIT.java
Outdated
Show resolved
Hide resolved
bundles/aliyun/src/main/java/org/apache/gravitino/oss/fs/OSSFileSystemProvider.java
Outdated
Show resolved
Hide resolved
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureStorageUtils.java
Outdated
Show resolved
Hide resolved
bundles/gcp/src/main/java/org/apache/gravitino/gcs/fs/GCSUtils.java
Outdated
Show resolved
Hide resolved
.../gravitino/filesystem/hadoop/integration/test/GravitinoVirtualFileSystemGCSCredentialIT.java
Outdated
Show resolved
Hide resolved
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureFileSystemProvider.java
Show resolved
Hide resolved
bundles/azure/src/main/java/org/apache/gravitino/abs/fs/AzureFileSystemProvider.java
Show resolved
Hide resolved
LGTM |
…eset catalog with cloud storage (apache#5974) ### What changes were proposed in this pull request? Support dynamic credential in obtaining cloud storage fileset. ### Why are the changes needed? Static key are not very safe, we need to optimize it. Fix: apache#5973 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? ITs
What changes were proposed in this pull request?
Support dynamic credential in obtaining cloud storage fileset.
Why are the changes needed?
Static key are not very safe, we need to optimize it.
Fix: #5973
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
ITs