Skip to content

[File system] Add Tencent Cloud COS integration #2686

@XuQianJin-Stars

Description

@XuQianJin-Stars

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

  1. Create fluss-fs-cos module under fluss-filesystems/
  2. Add Maven dependencies:
    • org.apache.hadoop:hadoop-cos
    • com.qcloud:cos_api
  3. Implement CosFileSystemFactory (similar to OssFileSystemFactory and ObsFileSystemFactory)
  4. Add plugin service loader configuration
  5. Implement credential/token provider if needed
  6. Add unit tests and integration tests

Testing

Local testing can be done with environment variables:

  • COSN_SECRET_ID
  • COSN_SECRET_KEY
  • COSN_ENDPOINT
  • COSN_BUCKET

References

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions