-
Notifications
You must be signed in to change notification settings - Fork 505
Open
Description
Search before asking
- I searched in the issues and found nothing similar.
Motivation
Add support for Tencent Cloud COS (Cloud Object Storage) file system integration to Fluss.
Solution
Integrate Tencent Cloud COS Hadoop file system adapter class. Configuration options will be passed directly to the COS file system.
Configuration Example
remote.data.dir: cosn://bucket/fluss
'fs.cosn.endpoint' = 'ap-guangzhou',
'fs.cosn.userinfo.secretId' = 'your-secret-id',
'fs.cosn.userinfo.secretKey' = 'your-secret-key'Implementation Plan
- Create
fluss-fs-cosmodule underfluss-filesystems/ - Add Maven dependencies:
org.apache.hadoop:hadoop-coscom.qcloud:cos_api
- Implement
CosFileSystemFactory(similar toOssFileSystemFactoryandObsFileSystemFactory) - Add plugin service loader configuration
- Implement credential/token provider if needed
- Add unit tests and integration tests
Testing
Local testing can be done with environment variables:
COSN_SECRET_IDCOSN_SECRET_KEYCOSN_ENDPOINTCOSN_BUCKET
References
- Tencent Cloud COS: https://cloud.tencent.com/document/product/436
- Hadoop-COS: https://cloud.tencent.com/document/product/436/6884
- GitHub: https://github.com/tencentyun/hadoop-cos
Benefits
- Enables Fluss users to use Tencent Cloud COS as remote storage
- Expands cloud provider support for Chinese market
- Consistent with existing file system plugin architecture
Anything else?
No response
Willingness to contribute
- I'm willing to submit a PR!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels