lm-ylj commented on code in PR #7931:
URL: https://github.com/apache/seatunnel/pull/7931#discussion_r1820664946


##########
docs/en/seatunnel-engine/checkpoint-storage.md:
##########
@@ -73,6 +73,42 @@ For additional reading on the Hadoop Credential Provider 
API, you can see: [Cred
 
 For Aliyun OSS Credential Provider implements, you can see: [Auth Credential 
Providers](https://github.com/aliyun/aliyun-oss-java-sdk/tree/master/src/main/java/com/aliyun/oss/common/auth)
 
+#### COS
+
+Tencent COS based hdfs-file you can refer [Hadoop COS 
Docs](https://hadoop.apache.org/docs/stable/hadoop-cos/cloud-storage/) to 
config COS.
+
+Except when interacting with cos buckets, the cos client needs the credentials 
needed to interact with buckets.
+The client supports multiple authentication mechanisms and can be configured 
as to which mechanisms to use, and their order of use. Custom implementations 
of com.qcloud.cos.auth.COSCredentialsProvider may also be used.
+If you used SimpleCredentialsProvider (can be obtained from the Tencent Cloud 
API Key Management), these consist of an access key, a secret key.
+You can config like this:
+
+```yaml
+seatunnel:
+  engine:
+    checkpoint:
+      interval: 6000
+      timeout: 7000
+      storage:
+        type: hdfs
+        max-retained: 3
+        plugin-config:
+          storage.type: cos
+          cos.bucket: cosn://your-bucket
+          fs.cosn.credentials.provider: 
org.apache.hadoop.fs.cosn.auth.SimpleCredentialsProvider
+          fs.cosn.userinfo.secretId: your-secretId
+          fs.cosn.userinfo.secretKey: your-secretKey
+          fs.cosn.bucket.region: your-region
+```
+
+For additional reading on the Hadoop Credential Provider API, you can see: 
[Credential Provider 
API](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/CredentialProviderAPI.html).
+
+For additional COS configuration, you can see: [Tencent Hadoop-COS 
Docs](https://doc.fincloud.tencent.cn/tcloud/Storage/COS/846365/hadoop)
+
+Please add the following jar to the lib directory:
+- hadoop-cos-3.4.1.jar
+- cos_api-bundle-5.6.69.jar
+- hadoop-shaded-guava-1.1.1.jar

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to