Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[Improvement] feat(iceberg): Enable setting of additional configuration parameters through environment variables (#6458)

this-usere2947e131aec
diff --git a/dev/docker/iceberg-rest-server/rewrite_config.py b/dev/docker/iceberg-rest-server/rewrite_config.py
index 8b9b42a531..652712039b 100755
--- a/dev/docker/iceberg-rest-server/rewrite_config.py
+++ b/dev/docker/iceberg-rest-server/rewrite_config.py
@@ -21,6 +21,9 @@ import os
env_map = {
"GRAVITINO_IO_IMPL" : "io-impl",
"GRAVITINO_URI" : "uri",
+ "GRAVITINO_JDBC_DRIVER": "jdbc-driver",
+ "GRAVITINO_JDBC_USER": "jdbc-user",
+ "GRAVITINO_JDBC_PASSWORD": "jdbc-password",
"GRAVITINO_WAREHOUSE" : "warehouse",
"GRAVITINO_CREDENTIAL_PROVIDER_TYPE" : "credential-providers",
"GRAVITINO_CREDENTIAL_PROVIDERS" : "credential-providers",
@@ -28,6 +31,7 @@ env_map = {
"GRAVITINO_GCS_SERVICE_ACCOUNT_FILE" : "gcs-service-account-file",
"GRAVITINO_S3_ACCESS_KEY" : "s3-access-key-id",
"GRAVITINO_S3_SECRET_KEY" : "s3-secret-access-key",
+ "GRAVITINO_S3_ENDPOINT" : "s3-endpoint",
"GRAVITINO_S3_REGION" : "s3-region",
"GRAVITINO_S3_ROLE_ARN" : "s3-role-arn",
"GRAVITINO_S3_EXTERNAL_ID" : "s3-external-id",
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index 823ae5b03a..6ea4a8bb05 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -428,11 +428,15 @@ Gravitino Iceberg REST server in docker image could access local storage by defa
|----------------------------------------|-----------------------------------------------------|------------------|
| `GRAVITINO_IO_IMPL` | `gravitino.iceberg-rest.io-impl` | 0.7.0-incubating |
| `GRAVITINO_URI` | `gravitino.iceberg-rest.uri` | 0.7.0-incubating |
+| `GRAVITINO_JDBC_DRIVER` | `gravitino.iceberg-rest.jdbc-driver` | 0.9.0-incubating |
+| `GRAVITINO_JDBC_USER` | `gravitino.iceberg-rest.jdbc-user` | 0.9.0-incubating |
+| `GRAVITINO_JDBC_PASSWORD` | `gravitino.iceberg-rest.jdbc-password` | 0.9.0-incubating |
| `GRAVITINO_WAREHOUSE` | `gravitino.iceberg-rest.warehouse` | 0.7.0-incubating |
| `GRAVITINO_CREDENTIAL_PROVIDERS` | `gravitino.iceberg-rest.credential-providers` | 0.8.0-incubating |
| `GRAVITINO_GCS_SERVICE_ACCOUNT_FILE` | `gravitino.iceberg-rest.gcs-service-account-file` | 0.8.0-incubating |
| `GRAVITINO_S3_ACCESS_KEY` | `gravitino.iceberg-rest.s3-access-key-id` | 0.7.0-incubating |
| `GRAVITINO_S3_SECRET_KEY` | `gravitino.iceberg-rest.s3-secret-access-key` | 0.7.0-incubating |
+| `GRAVITINO_S3_ENDPOINT` | `gravitino.iceberg-rest.s3-endpoint` | 0.9.0-incubating |
| `GRAVITINO_S3_REGION` | `gravitino.iceberg-rest.s3-region` | 0.7.0-incubating |
| `GRAVITINO_S3_ROLE_ARN` | `gravitino.iceberg-rest.s3-role-arn` | 0.7.0-incubating |
| `GRAVITINO_S3_EXTERNAL_ID` | `gravitino.iceberg-rest.s3-external-id` | 0.7.0-incubating |