This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 23554454a2 [core] refine the dlf config key (#5233)
23554454a2 is described below
commit 23554454a25e6669203c591d8dfa42a8416d9432
Author: Jiajia Li <[email protected]>
AuthorDate: Sun Mar 9 16:06:14 2025 +0800
[core] refine the dlf config key (#5233)
---
docs/content/concepts/rest-catalog.md | 10 +++++-----
docs/content/spark/sql-ddl.md | 10 +++++-----
.../main/java/org/apache/paimon/rest/RESTCatalogOptions.java | 6 +++---
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/docs/content/concepts/rest-catalog.md
b/docs/content/concepts/rest-catalog.md
index 852d3cdf15..f11d7f3d69 100644
--- a/docs/content/concepts/rest-catalog.md
+++ b/docs/content/concepts/rest-catalog.md
@@ -74,8 +74,8 @@ WITH (
'metastore' = 'rest',
'warehouse' = 'my_instance_name',
'token.provider' = 'dlf',
- 'dlf.accessKeyId'='<accessKeyId>',
- 'dlf.accessKeySecret'='<accessKeySecret>',
+ 'dlf.access-key-id'='<access-key-id>',
+ 'dlf.access-key-secret'='<access-key-secret>',
);
```
@@ -89,9 +89,9 @@ WITH (
'metastore' = 'rest',
'warehouse' = 'my_instance_name',
'token.provider' = 'dlf',
- 'dlf.accessKeyId'='<accessKeyId>',
- 'dlf.accessKeySecret'='<accessKeySecret>',
- 'dlf.securityToken'='<securityToken>'
+ 'dlf.access-key-id'='<access-key-id>',
+ 'dlf.access-key-secret'='<access-key-secret>',
+ 'dlf.security-token'='<security-token>'
);
```
diff --git a/docs/content/spark/sql-ddl.md b/docs/content/spark/sql-ddl.md
index 8be5304d54..7a65094c1a 100644
--- a/docs/content/spark/sql-ddl.md
+++ b/docs/content/spark/sql-ddl.md
@@ -141,8 +141,8 @@ spark-sql ... \
--conf spark.sql.catalog.paimon.metastore=rest \
--conf spark.sql.catalog.paimon.uri=<catalog server url> \
--conf spark.sql.catalog.paimon.token.provider=dlf \
- --conf spark.sql.catalog.paimon.dlf.accessKeyId=<accessKeyId> \
- --conf spark.sql.catalog.paimon.dlf.accessKeySecret=<accessKeySecret>
+ --conf spark.sql.catalog.paimon.dlf.access-key-id=<access-key-id> \
+ --conf spark.sql.catalog.paimon.dlf.access-key-secret=<security-token>
```
@@ -153,9 +153,9 @@ spark-sql ... \
--conf spark.sql.catalog.paimon.metastore=rest \
--conf spark.sql.catalog.paimon.uri=<catalog server url> \
--conf spark.sql.catalog.paimon.token.provider=dlf \
- --conf spark.sql.catalog.paimon.dlf.accessKeyId=<accessKeyId> \
- --conf spark.sql.catalog.paimon.dlf.accessKeySecret=<accessKeySecret> \
- --conf spark.sql.catalog.paimon.dlf.securityToken=<securityToken>
+ --conf spark.sql.catalog.paimon.dlf.access-key-id=<access-key-id> \
+ --conf spark.sql.catalog.paimon.dlf.access-key-secret=<access-key-secret> \
+ --conf spark.sql.catalog.paimon.dlf.security-token=<security-token>
```
diff --git
a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalogOptions.java
b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalogOptions.java
index 3fb44314d3..e1c11c4e6a 100644
--- a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalogOptions.java
+++ b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalogOptions.java
@@ -63,19 +63,19 @@ public class RESTCatalogOptions {
.withDescription("REST Catalog auth DLF token file path.");
public static final ConfigOption<String> DLF_ACCESS_KEY_ID =
- ConfigOptions.key("dlf.accessKeyId")
+ ConfigOptions.key("dlf.access-key-id")
.stringType()
.noDefaultValue()
.withDescription("REST Catalog auth DLF access key id");
public static final ConfigOption<String> DLF_ACCESS_KEY_SECRET =
- ConfigOptions.key("dlf.accessKeySecret")
+ ConfigOptions.key("dlf.access-key-secret")
.stringType()
.noDefaultValue()
.withDescription("REST Catalog auth DLF access key
secret");
public static final ConfigOption<String> DLF_SECURITY_TOKEN =
- ConfigOptions.key("dlf.securityToken")
+ ConfigOptions.key("dlf.security-token")
.stringType()
.noDefaultValue()
.withDescription("REST Catalog auth DLF security token");