You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "qingwei727 (via GitHub)" <gi...@apache.org> on 2026/01/19 12:17:58 UTC

[PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

qingwei727 opened a new pull request, #9751:
URL: https://github.com/apache/gravitino/pull/9751

   <!--
   [#XXX] feat(paimon): support REST catalog backend for Paimon
   -->
   
   ### What changes were proposed in this pull request?
   
   Add `REST` enum value to `PaimonCatalogBackend` to support Paimon REST catalog backend.
   
   This enables Gravitino to connect to Paimon REST-compatible services (e.g., Alibaba Cloud DLF) via the `gravitino.bypass.*` prefix mechanism.
   
   ### Why are the changes needed?
   
   Paimon natively supports `rest` as a metastore type, but Gravitino's `PaimonCatalogBackend` enum only includes `FILESYSTEM`, `JDBC`, and `HIVE`. This prevents users from using Paimon REST catalog services through Gravitino.
   
   With this change, users can:
   - Connect to Paimon REST catalog services
   - Use `gravitino.bypass.*` prefix to pass through any Paimon-native configurations
   
   Example configuration:
   ```json
   {
     "catalog-backend": "rest",
     "uri": "http://example.com",
     "warehouse": "my_catalog",
     "gravitino.bypass.token.provider": "dlf",
     "gravitino.bypass.dlf.access-key-id": "xxx"
   }


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2734740695


##########
catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java:
##########
@@ -102,6 +108,58 @@ public class PaimonCatalogPropertiesMetadata extends BaseCatalogPropertiesMetada
           OSSProperties.GRAVITINO_OSS_ACCESS_KEY_SECRET, PaimonOSSFileSystemConfig.OSS_SECRET_KEY,
           OSSProperties.GRAVITINO_OSS_ENDPOINT, PaimonOSSFileSystemConfig.OSS_ENDPOINT);
 
+  public static final Map<String, PropertyEntry<?>> DLF_PROPERTY_ENTRIES =

Review Comment:
   sure



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713688019


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,29 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties eg: `{
+  "name": "dlf_paimon",
+  "type": "RELATIONAL",
+  "provider": "lakehouse-paimon",
+  "properties": {
+    "catalog-backend": "rest",
+    "uri": "https://cn-hangzhou-vpc.dlf.aliyuncs.com",
+    "warehouse": "gravitino",
+    "token-provider": "dlf",
+    "dlf-access-key-id": "xxx",
+    "dlf-access-key-secret": "xxx"
+  }
+}` connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   I guess using \`\` for multi-lines code rendering will have an issue, we'd better using \``` instead.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2720054975


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Yes, removed it.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2719959122


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,29 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties eg: `{
+  "name": "dlf_paimon",
+  "type": "RELATIONAL",
+  "provider": "lakehouse-paimon",
+  "properties": {
+    "catalog-backend": "rest",
+    "uri": "https://cn-hangzhou-vpc.dlf.aliyuncs.com",
+    "warehouse": "gravitino",
+    "token-provider": "dlf",
+    "dlf-access-key-id": "xxx",
+    "dlf-access-key-secret": "xxx"
+  }
+}` connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   sure



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2720054975


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Yes, removed it. It's not dedicated config option for Aliyun DLP Paimon REST server.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711006211


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
+If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
 :::
 
 :::note
 The hive backend does not support the kerberos authentication now.
 :::
 
+:::note
+If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties like `dlf-token-provider`, `dlf-access-key-id`, and `dlf-access-key-secret` to connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   all note merged



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2710747631


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest`.                                                                                                                | 0.8.0-incubating |

Review Comment:
   The current main branch is `1.2.0-SNAPSHOT`, and this PR is not intended to cherry pick to branch-1.0, so the since version should be `1.2.0`, YES?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3780156066

   My feeling is that most of the property definitions are too vendor-specific, like `dlf-xxx`. Also, it emphasizes everywhere in the doc that "rest" equals "dlf". What happens if there are other Paimon REST implementations?
   
   I would suggest making the property as generic as possible, so that if there are other Paimon REST implementations, such properties can also be leveraged.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711172055


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   First, you should configure `token-provider` instead of `dlf-token-provider`. You can see the document of Paimon.
   ```
   CREATE CATALOG `paimon-rest-catalog`
   WITH (
       'type' = 'paimon',
       'uri' = '<catalog server url>',
       'metastore' = 'rest',
       'warehouse' = 'my_instance_name',
       'token.provider' = 'dlf',
       'dlf.access-key-id'='<access-key-id>',
       'dlf.access-key-secret'='<access-key-secret>',
   );
   ```



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711172055


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   First, you should configure `token-provider`.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3808828075

   @qingwei727 Could u resolve this comment? https://github.com/apache/gravitino/pull/9751?notification_referrer_id=NT_kwHOAHx_PtoAJVJlcG9zaXRvcnk7NjMxNDMxMDYxO0lzc3VlOzM4Mjk0NjA3OTI&notifications_query=reason%3Aparticipating#discussion_r2731151520


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713730790


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,16 +45,16 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
-  // DLF (Data Lake Formation) related properties - Gravitino keys
-  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";
+  // DLF (Data Lake Formation) related properties
+  public static final String GRAVITINO_TOKEN_PROVIDER = "token-provider";
   public static final String GRAVITINO_DLF_ACCESS_KEY_ID = "dlf-access-key-id";
   public static final String GRAVITINO_DLF_ACCESS_KEY_SECRET = "dlf-access-key-secret";
   public static final String GRAVITINO_DLF_SECURITY_TOKEN = "dlf-security-token";
   public static final String GRAVITINO_DLF_TOKEN_PATH = "dlf-token-path";
   public static final String GRAVITINO_DLF_TOKEN_LOADER = "dlf-token-loader";
 
   // DLF related properties - Paimon backend keys
-  public static final String PAIMON_DLF_TOKEN_PROVIDER = "token.provider";
+  public static final String PAIMON_TOKEN_PROVIDER = "token.provider";

Review Comment:
   This is the DLF one, right? The Gravitino one should be "token-provider".



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2708427670


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest`.                                                                                                                | 0.8.0-incubating |

Review Comment:
   required if the value of `catalog-backend` is `rest` -> required if the value of `catalog-backend` is `rest` and accessing  Aliyun DLF Paimon REST server ?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2708738699


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest`.                                                                                                                | 0.8.0-incubating |

Review Comment:
   I correct it by 1.1.0 



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713350235


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,16 +45,16 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
-  // DLF (Data Lake Formation) related properties - Gravitino keys
-  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";
+  // DLF (Data Lake Formation) related properties
+  public static final String GRAVITINO_TOKEN_PROVIDER = "token-provider";
   public static final String GRAVITINO_DLF_ACCESS_KEY_ID = "dlf-access-key-id";
   public static final String GRAVITINO_DLF_ACCESS_KEY_SECRET = "dlf-access-key-secret";
   public static final String GRAVITINO_DLF_SECURITY_TOKEN = "dlf-security-token";
   public static final String GRAVITINO_DLF_TOKEN_PATH = "dlf-token-path";
   public static final String GRAVITINO_DLF_TOKEN_LOADER = "dlf-token-loader";
 
   // DLF related properties - Paimon backend keys
-  public static final String PAIMON_DLF_TOKEN_PROVIDER = "token.provider";
+  public static final String PAIMON_TOKEN_PROVIDER = "token.provider";

Review Comment:
   This isn't `dlf` related properties.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3772842112

   > Thanks for the PR, would you like to define DLF catalog properties explictly not using `gravitino.bypass.`? some extra works:
   > 
   > 1. define properties mapping in
   >    https://github.com/apache/gravitino/blob/6de1a0b1f1cadf049639da5eb33c878737113ca4/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java#L65
   >     ,  like
   >    `dlf-token-provider` -> `token.provider`,   `dlf-access-key-id` -> `dlf.access-key-id`
   > 2. update Paimon catalog document about how to use DLF REST catalog.
   
   
   
   > Thanks for the PR, would you like to define DLF catalog properties explictly not using `gravitino.bypass.`? some extra works:
   > 
   > 1. define properties mapping in
   >    https://github.com/apache/gravitino/blob/6de1a0b1f1cadf049639da5eb33c878737113ca4/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java#L65
   >     ,  like
   >    `dlf-token-provider` -> `token.provider`,   `dlf-access-key-id` -> `dlf.access-key-id`
   > 2. update Paimon catalog document about how to use DLF REST catalog.
   
   Sure, about 2, paimon already has post the dlf rest catalog in https://paimon.apache.org/docs/master/concepts/rest/overview/


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713715246


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   We typically use `-` instead of `.` for catalog properties; it is better to change to something like `token-provider`.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713348166


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Could u modify the desciption,too? 'required if the value of `catalog-backend` is `rest` '



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713348166


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Could u modify the desciption,too? `required if the value of `catalog-backend` is `rest` `



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2734748701


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,29 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF (Data Lake Formation).                                                                                                                                                     | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties eg: ```{

Review Comment:
   done,thanks



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3772973941

   minor comments, could you fix it?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2719912262


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   u mean remove 'and accessing Aliyun DLF Paimon REST server.' ?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 closed pull request #9751: [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend
URL: https://github.com/apache/gravitino/pull/9751


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2730865358


##########
catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java:
##########
@@ -102,6 +108,58 @@ public class PaimonCatalogPropertiesMetadata extends BaseCatalogPropertiesMetada
           OSSProperties.GRAVITINO_OSS_ACCESS_KEY_SECRET, PaimonOSSFileSystemConfig.OSS_SECRET_KEY,
           OSSProperties.GRAVITINO_OSS_ENDPOINT, PaimonOSSFileSystemConfig.OSS_ENDPOINT);
 
+  public static final Map<String, PropertyEntry<?>> DLF_PROPERTY_ENTRIES =

Review Comment:
   How about rename `DLF_PROPERTY_ENTRIES` to `REST_PROPERTY_ENTRIES`? because token provider is not bind to dlf, and we may add token mapping for bear token too.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2737813970


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,34 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |

Review Comment:
   For Paimon rest backend, do we have to specify the "token-provider"? What happened if the "token-provider" is not specified.



##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,34 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |

Review Comment:
   For Paimon rest backend, do we have to specify the "token-provider"? What happened if the "token-provider" is not specified?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711182222


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties like `dlf-token-provider`, `dlf-access-key-id`, and `dlf-access-key-secret` to connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   Could u give an example here?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711180781


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Token provider could be `bear` or `dlf`.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3771509925

   Thanks for the PR,  would you like to define DLF catalog properties explictly not using `gravitino.bypass.`? some extra works:
   1. define properties mapping in 
   https://github.com/apache/gravitino/blob/6de1a0b1f1cadf049639da5eb33c878737113ca4/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java#L65,like 
   `dlf-token-provider` -> `token.provider`,   `dlf-access-key-id` -> `dlf.access-key-id`
   2. update Paimon catalog document about how to use DLF REST catalog.  


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2708417145


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest`.                                                                                                                | 0.8.0-incubating |

Review Comment:
   The since version should be `1.2.0`



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2719912262


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   and accessing Aliyun DLF Paimon REST server.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3768065584

   Have verified by gravitino-playground


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711178932


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,6 +45,22 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
+  // DLF (Data Lake Formation) related properties - Gravitino keys
+  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";

Review Comment:
   This shouldn't bind to `dlf-token-provider`.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3808853553

   > dlf
   
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3811183931

   I have no other comments.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2731151520


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
 | `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Yes, you should add bear token property.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #9751:
URL: https://github.com/apache/gravitino/pull/9751


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3808861539

   > @qingwei727 Could u resolve this comment? #9751
   This one ` introduce more constant of 'GRAVITINO_TOKEN = "token"` ? sure
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2739419456


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,34 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |

Review Comment:
   Yes, we must set it otherwise throw IllegalArgumentException



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2726502690


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   +1, `token-provider` is a general concept in Paimon REST spec



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3803855197

   LGTM except one minor comment, @jerqi @yuqi1129 @jerryshao, any more comments?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3771594106

   > Thanks for the PR, would you like to define DLF catalog properties explictly not using `gravitino.bypass.`? some extra works:
   > 
   > 1. define properties mapping in
   >    https://github.com/apache/gravitino/blob/6de1a0b1f1cadf049639da5eb33c878737113ca4/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogPropertiesMetadata.java#L65
   >     ,  like
   >    `dlf-token-provider` -> `token.provider`,   `dlf-access-key-id` -> `dlf.access-key-id`
   > 2. update Paimon catalog document about how to use DLF REST catalog.
   
   It's not REST catalog properties. It's DLF properties. So I don't think this is a good choice.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3773337762

   > minor comments, could you fix it?
   
   Thank you for your constructive suggestions.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2733280784


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,29 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF (Data Lake Formation).                                                                                                                                                     | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties eg: ```{

Review Comment:
   Use a new line for code block \```, otherwise it will all be displayed in a single line. Please check here https://github.com/qingwei727/gravitino/blob/f7c7dd13b686a25f8eb1b63b170ebd8195d0d552/docs/lakehouse-paimon-catalog.md.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713419397


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
 | `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Could u add bear token provider property `token` here?
   ```
   CREATE CATALOG `paimon-rest-catalog`
   WITH (
       'type' = 'paimon',
       'uri' = '<catalog server url>',
       'metastore' = 'rest',
       'warehouse' = 'my_instance_name',
       'token.provider' = 'bear'
       'token' = '<token>'
   );
   ```



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2710833002


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
+If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
 :::
 
 :::note
 The hive backend does not support the kerberos authentication now.
 :::
 
+:::note
+If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties like `dlf-token-provider`, `dlf-access-key-id`, and `dlf-access-key-secret` to connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   I would suggest you try to merge these three `note` blocks as it's really tedious to have so many subsequent extra text blocks here. 



##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,15 +47,25 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.1.1            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.1.1            |

Review Comment:
   I'm afraid that the version should be `1.2.0` as this commit will not be cherry-picked to `branch-1.1`, so the next version that contains this content will be 1.2.0. 



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2719951547


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,16 +45,16 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
-  // DLF (Data Lake Formation) related properties - Gravitino keys
-  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";
+  // DLF (Data Lake Formation) related properties
+  public static final String GRAVITINO_TOKEN_PROVIDER = "token-provider";
   public static final String GRAVITINO_DLF_ACCESS_KEY_ID = "dlf-access-key-id";
   public static final String GRAVITINO_DLF_ACCESS_KEY_SECRET = "dlf-access-key-secret";
   public static final String GRAVITINO_DLF_SECURITY_TOKEN = "dlf-security-token";
   public static final String GRAVITINO_DLF_TOKEN_PATH = "dlf-token-path";
   public static final String GRAVITINO_DLF_TOKEN_LOADER = "dlf-token-loader";
 
   // DLF related properties - Paimon backend keys
-  public static final String PAIMON_DLF_TOKEN_PROVIDER = "token.provider";
+  public static final String PAIMON_TOKEN_PROVIDER = "token.provider";

Review Comment:
   Moved to comment above



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3809192737

   > > @qingwei727 Could u resolve this comment? #9751
   > > This one ` introduce more constant of 'GRAVITINO_TOKEN = "token"` ? sure
   
   Yes, you should introduce  a new constant.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2719969852


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
 | `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   u mean introduce more constant of 'GRAVITINO_TOKEN = "token"'?



##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Thanks, already removed it and also update Description



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2733280784


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,29 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `token-provider`                                   | The token provider type for Paimon catalog backend.                                                                                                                                                         | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest`.                                                                                                                | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF (Data Lake Formation).                                                                                                                                                     | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties eg: ```{

Review Comment:
   Use a **new line** for code block \```, otherwise it will all be displayed in a single line. Please check here https://github.com/qingwei727/gravitino/blob/f7c7dd13b686a25f8eb1b63b170ebd8195d0d552/docs/lakehouse-paimon-catalog.md.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2736353899


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
 | `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   already added, thanks



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2711178932


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,6 +45,22 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
+  // DLF (Data Lake Formation) related properties - Gravitino keys
+  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";

Review Comment:
   This shouldn't bind to `dlf-token-provider`. It should be `token-provider`.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713239454


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,13 +47,17 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
+| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-id`                                | The access key ID for Aliyun DLF.                                                                                                                                                                           | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-access-key-secret`                            | The access key secret for Aliyun DLF.                                                                                                                                                                       | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `dlf-security-token`                               | The security token for Aliyun DLF.                                                                                                                                                                          | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-path`                                   | The token path for Aliyun DLF.                                                                                                                                                                              | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
+| `dlf-token-loader`                                 | The token loader for Aliyun DLF.                                                                                                                                                                            | (none)                                                                         | No                                                                                                                                                                   | 1.2.0            |
 
 :::note
-If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/master/filesystems/s3/).
-:::
-
-:::note
-The hive backend does not support the kerberos authentication now.
+- If you want to use the `oss` or `s3` warehouse, you need to place related jars in the `catalogs/lakehouse-paimon/lib` directory, more information can be found in the [Paimon S3](https://paimon.apache.org/docs/1.2/project/download/#filesystem-jars).
+- If you want to use REST backend, Gravitino Paimon catalog supports Aliyun DLF (Data Lake Formation) as the REST catalog service. You need to configure the DLF-related properties like `dlf-token-provider`, `dlf-access-key-id`, and `dlf-access-key-secret` to connect to Aliyun DLF, more information can be found in the [Paimon REST Catalog](https://paimon.apache.org/docs/master/concepts/rest/overview/).

Review Comment:
   ok



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713348166


##########
docs/lakehouse-paimon-catalog.md:
##########
@@ -47,7 +47,7 @@ Builds with Apache Paimon `1.2`.
 | `s3-endpoint`                                      | The endpoint of the AWS S3.                                                                                                                                                                                 | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-access-key-id`                                 | The access key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
 | `s3-secret-access-key`                             | The secret key of the AWS S3.                                                                                                                                                                               | (none)                                                                         | required if the value of `warehouse` is a S3 path                                                                                                                    | 0.7.0-incubating |
-| `dlf-token-provider`                               | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | (none)                                                                         | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |
+| `token-provider`                                   | The token provider type for Aliyun DLF (Data Lake Formation).                                                                                                                                               | Token provider could be `bear` or `dlf`.                                       | required if the value of `catalog-backend` is `rest` and accessing Aliyun DLF Paimon REST server.                                                                    | 1.2.0            |

Review Comment:
   Could u modify the desciption,too?



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#discussion_r2713350235


##########
catalogs/catalog-common/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonConstants.java:
##########
@@ -45,16 +45,16 @@ public class PaimonConstants {
   public static final String OSS_ACCESS_KEY = "fs.oss.accessKeyId";
   public static final String OSS_SECRET_KEY = "fs.oss.accessKeySecret";
 
-  // DLF (Data Lake Formation) related properties - Gravitino keys
-  public static final String GRAVITINO_DLF_TOKEN_PROVIDER = "dlf-token-provider";
+  // DLF (Data Lake Formation) related properties
+  public static final String GRAVITINO_TOKEN_PROVIDER = "token-provider";
   public static final String GRAVITINO_DLF_ACCESS_KEY_ID = "dlf-access-key-id";
   public static final String GRAVITINO_DLF_ACCESS_KEY_SECRET = "dlf-access-key-secret";
   public static final String GRAVITINO_DLF_SECURITY_TOKEN = "dlf-security-token";
   public static final String GRAVITINO_DLF_TOKEN_PATH = "dlf-token-path";
   public static final String GRAVITINO_DLF_TOKEN_LOADER = "dlf-token-loader";
 
   // DLF related properties - Paimon backend keys
-  public static final String PAIMON_DLF_TOKEN_PROVIDER = "token.provider";
+  public static final String PAIMON_TOKEN_PROVIDER = "token.provider";

Review Comment:
   This isn't `dlf` related properties. You should move this property above the comment.



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3780216832

   Besides, please create an issue to track this work and update the PR title. I don't think it is a minor fix.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [MINOR] feat(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3782100913

   > My feeling is that most of the property definitions are too vendor-specific, like `dlf-xxx`. Also, it emphasizes everywhere in the doc that "rest" equals "dlf". What happens if there are other Paimon REST implementations?
   > 
   > I would suggest making the property as generic as possible, so that if there are other Paimon REST implementations, such properties can also be leveraged.
   
   Thanks for the review! You raise a valid concern about property naming and extensibility.
   
   About he current implementation, I'd like to clarify:
   
   ### Current Design Rationale:
   
   1. **Generic property**: `token-provider` 
      - Already generic and can support multiple providers (e.g., `bearer`, `dlf`)
      - Not DLF-specific
   
   2. **DLF-specific properties**: `dlf-access-key-id`, `dlf-access-key-secret`, etc.
      - These are intentionally DLF-specific because they map directly to Paimon's DLF implementation
      - Paimon itself uses `dlf.access-key-id` format (see [Paimon DLF docs](https://paimon.apache.org/docs/master/concepts/rest/overview/))
   
   
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [9791] improvement(catalog-lakehouse-paimon): Support paimon rest backend [gravitino]

Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #9751:
URL: https://github.com/apache/gravitino/pull/9751#issuecomment-3788623002

   > Besides, please create an issue to track this work and update the PR title. I don't think it is a minor fix.
   
   Sure, already create an issue to associate: association


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org