Skip to content

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

[#7368] docs(iceberg): add document about how to use Gravitino IRC in StarRocks and Doris (#7367)

FANNG15491d82734e
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index af3bfea53b..27a5f51e88 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -439,6 +439,66 @@ DELETE FROM rest.dml.test WHERE id = 2;
SELECT * FROM test;
```
+## Exploring the Apache Gravitino Iceberg REST catalog service with Apache Doris
+
+### Creating Iceberg catalog in Apache Doris
+
+```
+CREATE CATALOG iceberg PROPERTIES (
+ "uri" = "http://localhost:9001/iceberg/",
+ "type" = "iceberg",
+ "iceberg.catalog.type" = "rest",
+ "s3.endpoint" = "http://s3.ap-southeast-2.amazonaws.com",
+ "s3.region" = "ap-southeast-2",
+ "s3.access_key" = "xxx",
+ "s3.secret_key" = "xxx"
+);
+```
+
+### Exploring Apache Iceberg with Apache Doris SQL
+
+```sql
+SWITCH iceberg;
+CREATE DATABASE db;
+USE db;
+CREATE TABLE t(a int);
+INSERT INTO t values(1);
+SELECT * FROM t;
+```
+
+## Exploring the Apache Gravitino Iceberg REST catalog service with StarRocks
+
+### Creating Iceberg catalog in StarRocks
+
+```
+CREATE EXTERNAL CATALOG 'iceberg'
+COMMENT "Gravitino Iceberg REST catalog on MinIO"
+PROPERTIES
+(
+ "type"="iceberg",
+ "iceberg.catalog.type"="rest",
+ "iceberg.catalog.uri"="http://iceberg-rest:9001/iceberg",
+ "aws.s3.access_key"="admin",
+ "aws.s3.secret_key"="password",
+ "aws.s3.endpoint"="http://minio:9000",
+ "aws.s3.enable_path_style_access"="true",
+ "client.factory"="com.starrocks.connector.iceberg.IcebergAwsClientFactory"
+);
+```
+
+Please note that, you should set `client.factory` explicitly.
+
+### Exploring Apache Iceberg with StarRocks SQL
+
+```sql
+SET CATALOG iceberg;
+CREATE DATABASE db;
+USE db;
+CREATE TABLE t(a int);
+INSERT INTO t values(1);
+SELECT * FROM t;
+```
+
## Docker instructions
You could run Gravitino Iceberg REST server though docker container: