Skip to main content
Version: 0.12.2

Tencent Cloud

In this page, we explain how to get your Hudi spark job to store into Tencent Cloud COS.

Tencent Cloud COS configs

There are two configurations required for Hudi-COS compatibility:

  • Adding Tencent Cloud COS Credentials for Hudi
  • Adding required Jars to classpath

Tencent Cloud COS Credentials

Add the required configs in your core-site.xml from where Hudi can fetch them. Replace the fs.defaultFS with your COS bucket name, replace fs.cosn.userinfo.secretId with your COS secret Id, replace fs.cosn.userinfo.secretKey with your COS key. Hudi should be able to read/write from the bucket.

<description>COS bucket name</description>

<description>Tencent Cloud Secret Id</description>

<description>Tencent Cloud Secret Key</description>

<description>The region where the bucket is located.</description>

COS endpoint to connect to.
For public cloud users, it is recommended not to set this option, and only the correct area field is required.

<description>The implementation class of the CosN Filesystem.</description>

<description>The implementation class of the CosN AbstractFileSystem.</description>

Tencent Cloud COS Libs

COS hadoop libraries to add to our classpath

  • org.apache.hadoop:hadoop-cos:2.8.5