Skip to content

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

[#845] docs(lakehouse-iceberg): add Iceberg catalog document (#1020)

FANNG1413d7fd6f65
diff --git a/docs/glossary.md b/docs/glossary.md
index befe7803c4..97536a7f81 100644
--- a/docs/glossary.md
+++ b/docs/glossary.md
@@ -133,6 +133,10 @@ This software is licensed under the Apache License version 2."
- Cryptographic hash values generated from the contents of a file, often used for integrity verification.
+## HDFS
+
+- **HDFS** (Hadoop Distributed File System) is an open-source distributed file system and a key component of the Apache Hadoop ecosystem. It is designed to store and process large-scale datasets, providing high reliability, fault tolerance, and performance for distributed storage solutions.
+
## Headless
- A system without a graphical user interface.
@@ -141,6 +145,18 @@ This software is licensed under the Apache License version 2."
- The port number on which a server listens for incoming connections.
+## Iceberg Hive catalog
+
+- The **Iceberg Hive catalog** is a specialized metadata service designed for the Apache Iceberg table format, allowing external systems to interact with Iceberg metadata via a Hive metastore thrift client.
+
+## Iceberg REST catalog
+
+- The **Iceberg REST Catalog** is a specialized metadata service designed for the Apache Iceberg table format, allowing external systems to interact with Iceberg metadata via a RESTful API.
+
+## Iceberg JDBC catalog
+
+- The **Iceberg JDBC Catalog** is a specialized metadata service designed for the Apache Iceberg table format, allowing external systems to interact with Iceberg metadata using JDBC (Java Database Connectivity).
+
## Identity fields
- Fields in tables that define the identity of the table, specifying how rows in the table are uniquely identified.
@@ -181,6 +197,10 @@ This software is licensed under the Apache License version 2."
- A file containing public keys used to sign previous releases, necessary for verifying signatures.
+## Lakehouse
+
+- **Lakehouse** refers to a modern data management architecture that combines elements of data lakes and data warehouses. It aims to provide a unified platform for storing, managing, and analyzing both raw unstructured data (similar to data lakes) and curated structured data.
+
## Manifest
- A list of files and associated metadata that collectively define the structure and content of a release or distribution.
@@ -269,6 +289,10 @@ This software is licensed under the Apache License version 2."
- A structured set of data elements stored in columns and rows.
+## Token
+
+- A **token** in the context of computing and security commonly refers to a small, indivisible unit of data. Tokens play a crucial role in various domains, including authentication, authorization, and cryptographic systems.
+
## Thrift protocol
- The network protocol used for communication with Hive Metastore Service (HMS).
diff --git a/docs/gravitino-use-iceberg.md b/docs/gravitino-use-iceberg.md
deleted file mode 100644
index 20e5c8acc0..0000000000
--- a/docs/gravitino-use-iceberg.md
+++ /dev/null
@@ -1,153 +0,0 @@
----
-title: "How to use Gravitino to manage Apache Iceberg metadata"
-date: 2023-10-18
-license: "Copyright 2023 Datastrato Pvt Ltd.
-This software is licensed under the Apache License version 2."
----
-
-## Using Apache Iceberg as a catalog in Gravitino
-
-Gravitino provides the ability to use Apache Iceberg as a catalog for managing your data. This guide walks you through the steps to create a catalog using Iceberg within Gravitino.
-
-### Capabilities
-
-* Worked as a catalog proxy, supports HiveCatalog and JdbcCatalog for now
-* The integrated Iceberg version used is 1.3.1.
-* Before creating a catalog, ensure you have already created a Metalake. If you still need to, please follow the Metalake creation steps.
-
-## Creating an Apache Iceberg catalog
-
-To create an Iceberg catalog, use the following steps:
-
-Submit a catalog JSON example to the Gravitino server using the URL format:
-
-```shell
-http://{GravitinoServerHost}:8090/api/metalakes/{Your_metalake_name}/catalogs
-```
-
- Example JSON:
-
- ```json
- {
- "name": "test",
- "comment": "my test catalog",
- "type": "RELATIONAL",
- "provider": "lakehouse-iceberg",
- "properties": {
- "catalog-backend": "jdbc",
- "uri": "jdbc:mysql://127.0.0.1:3306/metastore_db?createDatabaseIfNotExist=true",
- "jdbc-user": "iceberg",
- "jdbc-password": "iceberg",
- "warehouse": "file:///tmp/iceberg"
- }
- }
- ```
-
-* `provider`: Set this to "lakehouse-iceberg" to use Iceberg as the catalog provider.
-* `catalog-backend`: This configuration represents the catalog mode used by Iceberg. You can choose from "hive" and "jdbc".
-* `uri`: Required configuration, either a Hive URI or a JDBC URI.
-* `warehouse`: Required configuration, and can point to a file system such as HDFS.
-* You can add other configuration parameters to the "properties" section and they're passed down to the underlying system.
-* If you are using the JDBC catalog implementation, include "jdbc-user" and "jdbc-password" as required configurations.
-* If you intend to use the JDBC connector, add the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory in the classpath.
-
-### Catalog configuration
-
-| Configuration item | Description | value |
-|--------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------------------|
-| `catalog-backend` | Catalog backend of Gravitino Iceberg catalog. | `hive` or `jdbc` |
-| `uri` | The URI config of the Iceberg catalog. | `thrift://127.0.0.1:9083` or `jdbc:postgresql://127.0.0.1:5432/` or `jdbc:mysql://127.0.0.1:3306/test` |
-| `warehouse` | Warehouse directory of catalog. | `/user/hive/warehouse-hive/` or `hdfs://namespace/hdfs/path` |
-
-### HDFS configuration
-
-You can place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-iceberg/conf` directory, and it will be automatically loaded as the default HDFS configuration. Of course, you can also pass the respective key-value pairs in the JSON parameters under 'properties' for personalized configuration.
-
-## After catalog initialization
-
-You can manage and operate on tables using the following URL format:
-
- ```shell
- http://{GravitinoServerHost}:8090/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/tables
- ```
-
-Example JSON:
-
-```json
-{
- "name": "test_table",
- "comment": "my test table",
- "columns": [
- {
- "name": "id",
- "type": "integer",
- "comment": "id column comment",
- "nullable": false
- },
- {
- "name": "name",
- "type": "string",
- "comment": "name column comment",
- "nullable": false
- },
- {
- "name": "age",
- "type": "integer",
- "comment": "age column comment",
- "nullable": false
- },
- {
- "name": "dt",
- "type": "date",
- "comment": "dt column comment",
- "nullable": false
- }
- ],
- "partitions": [
- {
- "strategy": "identity",
- "fieldName": ["dt"]
- }
- ],
- "sortOrders": [
- {
- "expression": {
- "expressionType": "field",
- "fieldName": ["age"]
- },
- "direction": "asc",
- "nullOrdering": "first"
- }
- ],
- "properties": {
- "k1" : "v1"
- }
-}
-```
-
-* `name`: The created name of the Iceberg table.
-* `comment`: Optional, user custom Iceberg table comment.
-* `columns`: The columns of the Iceberg table.
-* `partitions`: Optional, the partitions of the Iceberg table, the previous example is a partitioned table with `dt` column.
-* `sortOrders`: Optional, equivalent to the `SORTED BY` clause in Iceberg DDL, the previous example table sorted data in increasing order of `age` in each bucket.
-* `properties`: The properties of the Iceberg table. For more property information see the following properties table. The underlying Iceberg table parameters receive any other properties passed down.
-
-Iceberg lacks distribution support. For buckets, consider using partitions instead.
-
-### Table properties
-
-Gravitino reserves the following fields, and you can't pass them in properties.
-
-| Configuration item | Description |
-|---------------------------|---------------------------------------------------------|
-| `comment` | The table comment. |
-| `creator` | The table creator. |
-| `location` | Iceberg location for table storage. |
-| `current-snapshot-id` | The snapshot represents the current state of the table. |
-| `cherry-pick-snapshot-id` | Selecting a specific snapshot in a merge operation. |
-| `sort-order` | Selecting a specific snapshot in a merge operation. |
-| `identifier-fields` | The identifier fields for defining the table. |
-
-Regarding Iceberg's properties, you can refer to [official documentation](https://iceberg.apache.org/docs/1.3.1/configuration/).
-
-You can use Iceberg as a catalog for managing your data in Gravitino. If you encounter any issues or need further assistance, refer to the Gravitino documentation or seek help from the support team.
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index 2ee3085bec..70c74bcefb 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -1,6 +1,8 @@
---
-title: "How to set up Gravitino and Apache Iceberg REST server"
-date: 2023-10-18T09:03:20-08:00
+title: "Gravitino Iceberg REST catalog service"
+slug: /iceberg-rest-service
+keywords:
+ - Iceberg REST catalog
license: "Copyright 2023 Datastrato Pvt Ltd.
This software is licensed under the Apache License version 2."
---
@@ -11,96 +13,120 @@ The Gravitino Iceberg REST Server follows the [Apache Iceberg REST API specifica
### Capabilities
-* Supports the Apache Iceberg REST API defined in Iceberg 1.3.1, and supports the namespace and table interfaces. `Token`, `ReportMetrics`, and `Config` interfaces aren't supported yet.
-* Works as a catalog proxy, supporting HiveCatalog and JDBCCatalog.
-* Built with Iceberg `1.3.1`. The Iceberg table format version is `1` by default.
-* When writing to HDFS, the Gravitino Iceberg REST server can only operate as the specified HDFS user and
- it doesn't support proxying to other HDFS users. See *How to access Apache Hadoop* in the *How to customize Gravitino server configurations* document for more details.
+- Supports the Apache Iceberg REST API defined in Iceberg 1.3.1, supports all namespace and table interfaces. `Token`, `ReportMetrics`, and `Config` interfaces aren't supported yet.
+- Works as a catalog proxy, supporting `HiveCatalog` and `JDBCCatalog`.
+- When writing to HDFS, the Gravitino Iceberg REST catalog service can only operate as the specified HDFS user and
+ doesn't support proxying to other HDFS users. See [How to access Apache Hadoop](gravitino-server-config) for more details.
-## How to start the Gravitino and Apache Iceberg REST server
+:::info
+Builds with Apache Iceberg `1.3.1`. The Apache Iceberg table format version is `1` by default.
+:::
-Deploy the Gravitino server to the `GRAVITINO_HOME` directory. You can find the configuration options in [`$GRAVITINO_HOME/conf/gravitino.conf`](gravitino-server-config.md).
+:::info
+Builds with hadoop 2.10.x, there may compatibility issue when accessing hadoop 3.x clusters.
+:::
-### Basic Gravitino and Apache Iceberg server configuration
+## How to start the Gravitino Iceberg REST catalog service
-| Configuration item | Description | Default value | Since Version |
-|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------|
-| `gravitino.auxService.names ` | The auxiliary service name of the Gravitino Iceberg REST server, use **`iceberg-rest`** for the Gravitino Iceberg REST server. | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.classpath ` | The classpath of the Gravitino Iceberg REST server, includes the directory containing jars and configuration. It supports both absolute paths and relative paths, for example, `catalogs/lakehouse-iceberg/libs, catalogs/lakehouse-iceberg/conf` | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.host` | The host of the Gravitino Iceberg REST server. | `0.0.0.0` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.httpPort` | The port of the Gravitino Iceberg REST server. **If this port is already in use, set a different port, such as `9001`.** | `8090` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.minThreads` | The minimum number of threads in the thread pool used by the Jetty web server. `minThreads` is 8 if the value is less than 8. | `Math.max(Math.min(Runtime.getRuntime().availableProcessors() * 2, 100), 8)` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.maxThreads` | The maximum number of threads in the thread pool used by the Jetty web server. `maxThreads` is 8 if the value is less than 8, and `maxThreads` must be greater than or equal to `minThreads`. | `Math.max(Runtime.getRuntime().availableProcessors() * 4, 400)` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.threadPoolWorkQueueSize` | The size of the queue in the thread pool used by Gravitino Iceberg REST server. | `100` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.stopTimeout` | The amount of time in ms for the Gravitino Iceberg REST server to stop gracefully. For more information see `org.eclipse.jetty.server.Server#setStopTimeout`. | `30000` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.idleTimeout` | The timeout in ms of idle connections. | `30000` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.requestHeaderSize` | The maximum size of an HTTP request. | `131072` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.responseHeaderSize` | The maximum size of an HTTP response. | `131072` | 0.2.0 |
+Deploy the Gravitino server to the `GRAVITINO_HOME` directory. You can find the configuration options in [`$GRAVITINO_HOME/conf/gravitino.conf`](gravitino-server-config).
-### Apache Iceberg catalog configuration
+### Gravitino Iceberg REST catalog service configuration
-Not recommended for production environments the Gravitino Iceberg REST server defaults to using a memory catalog. You can instead specify an Apache Hive or JDBC catalog.
+| Configuration item | Description | Default value | Required | Since Version |
+|-------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|----------|---------------|
+| `gravitino.auxService.names` | The auxiliary service name of the Gravitino Iceberg REST catalog service, use **`iceberg-rest`** for the Gravitino Iceberg REST catalog service. | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.classpath` | The classpath of the Gravitino Iceberg REST catalog service, includes the directory containing jars and configuration. It supports both absolute paths and relative paths, for example, `catalogs/lakehouse-iceberg/libs, catalogs/lakehouse-iceberg/conf` | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.host` | The host of the Gravitino Iceberg REST catalog service. | `0.0.0.0` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.httpPort` | The port of the Gravitino Iceberg REST catalog service. | `8090` | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.minThreads` | The minimum number of threads in the thread pool used by the Jetty web server. `minThreads` is 8 if the value is less than 8. | `Math.max(Math.min(Runtime.getRuntime().availableProcessors() * 2, 100), 8)` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.maxThreads` | The maximum number of threads in the thread pool used by the Jetty web server. `maxThreads` is 8 if the value is less than 8, and `maxThreads` must be greater than or equal to `minThreads`. | `Math.max(Runtime.getRuntime().availableProcessors() * 4, 400)` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.threadPoolWorkQueueSize` | The size of the queue in the thread pool used by Gravitino Iceberg REST catalog service. | `100` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.stopTimeout` | The amount of time in ms for the Gravitino Iceberg REST catalog service to stop gracefully. For more information see `org.eclipse.jetty.server.Server#setStopTimeout`. | `30000` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.idleTimeout` | The timeout in ms of idle connections. | `30000` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.requestHeaderSize` | The maximum size of an HTTP request. | `131072` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.responseHeaderSize` | The maximum size of an HTTP response. | `131072` | No | 0.2.0 |
-#### Apache Hive catalog configuration
+:::caution
+You must set `gravitino.auxService.iceberg-rest.httpPort` explicitly, like `9001`.
+:::
-| Configuration item | Description | Default value | Since Version |
-|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|-----|
-| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of Gravitino Iceberg REST server, use the value **`hive`** for a Hive catalog. | `memory` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.uri` | The Hive metadata address, such as `thrift://127.0.0.1:9083`. | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.warehouse ` | The warehouse directory of the Hive catalog, such as `/user/hive/warehouse-hive/`. | null | 0.2.0 |
+### Iceberg catalog configuration
+
+:::info
+The Gravitino Iceberg REST catalog service using memory catalog for default. You can specify Hive or JDBC catalog for production environments.
+:::
+
+#### Hive catalog configuration
+
+| Configuration item | Description | Default value | Required | Since Version |
+|-----------------------------------------------------|-------------------------------------------------------------------------------------------------------------|---------------|------------|---------------|
+| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of Gravitino Iceberg REST catalog service, use the value **`hive`** for a Hive catalog. | `memory` | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.uri` | The Hive metadata address, such as `thrift://127.0.0.1:9083`. | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.warehouse ` | The warehouse directory of the Hive catalog, such as `/user/hive/warehouse-hive/`. | (none) | Yes | 0.2.0 |
#### JDBC catalog configuration
-| Configuration item | Description | Default value | Since Version |
-|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|-----|
-| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of Gravitino Iceberg REST server, use the value **`jdbc`** for a JDBC catalog | `memory`| 0.2.0 |
-| `gravitino.auxService.iceberg-rest.uri` | The JDBC connection address, such as `jdbc:postgresql://127.0.0.1:5432` for Postgres, or `jdbc:mysql://127.0.0.1:3306/` for mysql. | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.warehouse ` | The warehouse directory of JDBC catalog, set HDFS prefix if using HDFS, such as `hdfs://127.0.0.1:9000/user/hive/warehouse-jdbc` | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.jdbc.user` | The username of the JDBC connection. | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.jdbc.password` | The password of the JDBC connection. | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.jdbc-initialize` | Whether to initialize the meta tables when creating the JDBC catalog. | `true` | 0.2.0 |
+| Configuration item | Description | Default value | Required | Since Version |
+|-----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|
+| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of Gravitino Iceberg REST catalog service, use the value **`jdbc`** for a JDBC catalog. | `memory` | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.uri` | The JDBC connection address, such as `jdbc:postgresql://127.0.0.1:5432` for Postgres, or `jdbc:mysql://127.0.0.1:3306/` for mysql. | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.warehouse ` | The warehouse directory of JDBC catalog, set HDFS prefix if using HDFS, such as `hdfs://127.0.0.1:9000/user/hive/warehouse-jdbc` | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.jdbc.user` | The username of the JDBC connection. | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.jdbc.password` | The password of the JDBC connection. | (none) | Yes | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.jdbc-initialize` | Whether to initialize the meta tables when creating the JDBC catalog. | `true` | No | 0.2.0 |
+| `gravitino.auxService.iceberg-rest.jdbc-driver` | `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL. | (none) | Yes | 0.3.0 |
-If using a JDBC catalog, you must **download the corresponding JDBC driver jars, and place them in the Gravitino Iceberg REST server classpath**, such as `catalogs/lakehouse-iceberg/libs`.
+:::caution
+You must download the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory.
+:::
+
+:::info
+`gravitino.auxService.iceberg-rest.jdbc-driver` is not required unless Gravitino manages multi JDBC drivers.
+:::
### Other Apache Iceberg catalog properties
-You can add other properties defined in [CatalogProperties of Iceberg](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/CatalogProperties.java), please note that `catalog-impl` has no effect.
+You can add other properties defined in [Iceberg table properties](https://iceberg.apache.org/docs/1.3.1/configuration/).
The `clients` property for example:
-| Configuration item | Description | Default value |
-|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|
-| `gravitino.auxService.iceberg-rest.clients` | The client pool size of the catalog. | `2` |
+| Configuration item | Description | Default value | Required |
+|---------------------------------------------|--------------------------------------|---------------|----------|
+| `gravitino.auxService.iceberg-rest.clients` | The client pool size of the catalog. | `2` | No |
+
+:::info
+`catalog-impl` has no effect.
+:::
### HDFS configuration
-The Gravitino Iceberg REST server adds the HDFS configuration files, `core-site.xml` and `hdfs-site.xml` from the directory defined by `gravitino.auxService.iceberg-rest.classpath`, for example, `catalogs/lakehouse-iceberg/conf`, to the classpath.
+The Gravitino Iceberg REST catalog service adds the HDFS configuration files, `core-site.xml` and `hdfs-site.xml` from the directory defined by `gravitino.auxService.iceberg-rest.classpath`, for example, `catalogs/lakehouse-iceberg/conf`, to the classpath.
-## Starting the Gravitino and Apache Iceberg REST server
+## Starting the Gravitino Iceberg REST catalog service
-Starting the Gravitino Iceberg REST server:
+Starting the Gravitino Iceberg REST catalog service:
```shell
./bin/gravitino.sh start
```
-How to find out whether the Gravitino Iceberg REST server has started:
+How to find out whether the Gravitino Iceberg REST catalog service has started:
```shell
curl http://127.0.0.1:9001/iceberg/application.wadl
```
-## Exploring the Gravitino and Apache Iceberg REST server with Apache Spark
+## Exploring the Gravitino and Apache Iceberg REST catalog service with Apache Spark
### Deploying Apache Spark with Apache Iceberg support
-Follow the [Spark Iceberg start guide](https://iceberg.apache.org/docs/latest/getting-started/) to setup Apache Spark's and Apache Iceberg's environment. Please keep the Spark version consistent with the `spark-iceberg-runtime` version.
+Follow the [Spark Iceberg start guide](https://iceberg.apache.org/docs/latest/getting-started/) to set up Apache Spark's and Apache Iceberg's environment. Please keep the Apache Spark version consistent with the `spark-iceberg-runtime` version.
### Starting the Apache Spark client with the Apache Iceberg REST catalog
-| Configuration item | Description |
-|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
-| `spark.sql.catalog.${catalog-name}.type` | The Spark catalog type, should set to `rest`. |
-| `spark.sql.catalog.${catalog-name}.uri` | Spark Iceberg REST catalog URI, such as `http://127.0.0.1:9001/iceberg/`. |
+| Configuration item | Description |
+|------------------------------------------|---------------------------------------------------------------------------|
+| `spark.sql.catalog.${catalog-name}.type` | The Spark catalog type, should set to `rest`. |
+| `spark.sql.catalog.${catalog-name}.uri` | Spark Iceberg REST catalog URI, such as `http://127.0.0.1:9001/iceberg/`. |
For example:
@@ -122,4 +148,4 @@ CREATE TABLE dml.test (id bigint COMMENT 'unique id') using iceberg
DESCRIBE TABLE EXTENDED dml.test;
INSERT INTO dml.test VALUES (1), (2);
SELECT * FROM dml.test
-```
+```
\ No newline at end of file
diff --git a/docs/lakehouse-iceberg-catalog.md b/docs/lakehouse-iceberg-catalog.md
new file mode 100644
index 0000000000..995d72a5e5
--- /dev/null
+++ b/docs/lakehouse-iceberg-catalog.md
@@ -0,0 +1,194 @@
+---
+title: "Lakehouse Apache Iceberg catalog"
+slug: /lakehouse-iceberg-catalog
+keywords:
+ - lakehouse
+ - iceberg
+ - metadata
+license: "Copyright 2023 Datastrato Pvt Ltd.
+This software is licensed under the Apache License version 2."
+---
+
+## Introduction
+
+Gravitino provides the ability to manage Apache Iceberg metadata.
+
+### Requirements and limitations
+
+:::info
+Builds with Apache Iceberg `1.3.1`. The Apache Iceberg table format version is `1` by default.
+:::
+
+:::info
+Builds with hadoop 2.10.x, there may compatibility issue when accessing hadoop 3.x clusters.
+:::
+
+## Catalog
+
+### Catalog capabilities
+
+- Works as a catalog proxy, supporting `HiveCatalog` and `JdbcCatalog`.
+- Supports DDL operations for Iceberg schemas and tables.
+- Doesn't support snapshot or table management operations.
+
+### Catalog properties
+
+| Property name | Description | Default value | Required | Since Version |
+|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|
+| `catalog-backend` | Catalog backend of Gravitino Iceberg catalog. Supports `hive` or `jdbc`. | (none) | Yes | 0.2.0 |
+| `uri` | The URI configuration of the Iceberg catalog. `thrift://127.0.0.1:9083` or `jdbc:postgresql://127.0.0.1:5432/db_name` or `jdbc:mysql://127.0.0.1:3306/metastore_db`. | (none) | Yes | 0.2.0 |
+| `warehouse` | Warehouse directory of catalog. `file:///user/hive/warehouse-hive/` for local fs or `hdfs://namespace/hdfs/path` for HDFS. | (none) | Yes | 0.2.0 |
+
+Any properties not defined by Gravitino with `gravitino.bypass` prefix will pass to Iceberg catalog properties and HDFS configuration. For example, if specify `gravitino.bypass.list-all-tables`, `list-all-tables` will pass to Iceberg catalog properties.
+
+#### JDBC catalog
+
+If you are using JDBC catalog, you must provide `jdbc-user`, `jdbc-password` and `jdbc-driver` to catalog properties.
+
+| Property name | Description | Default value | Required | Since Version |
+|-------------------|---------------------------------------------------------------------------------------------------------|---------------|----------|---------------|
+| `jdbc-user` | JDBC user name | (none) | Yes | 0.2.0 |
+| `jdbc-password` | JDBC password | (none) | Yes | 0.2.0 |
+| `jdbc-driver` | `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL | (none) | Yes | 0.3.0 |
+| `jdbc-initialize` | Whether to initialize meta tables when create Jdbc catalog | `true` | No | 0.2.0 |
+
+:::caution
+Your must download the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory.
+:::
+
+### Catalog operations
+
+## Schema
+
+### Schema capabilities
+
+- doesn't support cascade drop schema.
+
+### Schema properties
+
+You could put properties except `comment`.
+
+### Schema operations
+
+## Table
+
+### Table capabilities
+
+#### Table partitions
+
+Supports transforms:
+ - `IdentityTransform`
+ - `BucketTransform`
+ - `TruncateTransform`
+ - `YearTransform`
+ - `MonthTransform`
+ - `DayTransform`
+ - `HourTransform`
+
+:::info
+Iceberg doesn't support multi fields in `BucketTransform`.
+:::
+
+:::info
+Iceberg doesn't support `ApplyTransform`, `RangeTransform` and `ListTransform`.
+:::
+
+### Table sort orders
+
+supports expressions:
+- `FieldReference`
+- `FunctionExpression`
+ - `bucket`
+ - `truncate`
+ - `year`
+ - `month`
+ - `day`
+ - `hour`
+
+:::info
+For `bucket` and `truncate`, the first argument must be integer literal, the second argument must be field reference.
+:::
+
+### Table distributions
+
+- Doesn't support `Distribution`, you should use `BucketPartition` instead.
+
+### Table column types
+
+| Gravitino Type | Apache Iceberg Type |
+|-----------------------------|-----------------------------|
+| `Struct` | `Struct` |
+| `Map` | `Map` |
+| `Array` | `Array` |
+| `Boolean` | `Boolean` |
+| `Integer` | `Integer` |
+| `Long` | `Long` |
+| `Float` | `Float` |
+| `Double` | `Double` |
+| `String` | `String` |
+| `Date` | `Date` |
+| `Time` | `Time` |
+| `TimestampType withZone` | `TimestampType withZone` |
+| `TimestampType withoutZone` | `TimestampType withoutZone` |
+| `Decimal` | `Decimal` |
+| `Fixed` | `Fixed` |
+| `BinaryType` | `Binary` |
+| `UUID` | `UUID` |
+
+:::info
+Apache Iceberg doesn't support Gravitino `Varchar` `Fixedchar` `Byte` `Short` `Union` type.
+:::
+
+
+## Table properties
+
+You can pass [Iceberg table properties](https://iceberg.apache.org/docs/1.3.1/configuration/) to Gravitino when creating Iceberg table.
+
+Gravitino server reserves the following fields which can't be passed.
+
+| Configuration item | Description |
+|---------------------------|---------------------------------------------------------|
+| `comment` | The table comment. |
+| `creator` | The table creator. |
+| `location` | Iceberg location for table storage. |
+| `current-snapshot-id` | The snapshot represents the current state of the table. |
+| `cherry-pick-snapshot-id` | Selecting a specific snapshot in a merge operation. |
+| `sort-order` | Selecting a specific snapshot in a merge operation. |
+| `identifier-fields` | The identifier fields for defining the table. |
+
+## Table operations
+
+### Alter table operations
+
+Supports operations:
+- `RenameTable`
+- `SetProperty`
+- `RemoveProperty`
+- `UpdateComment`
+- `AddColumn`
+- `DeleteColumn`
+- `RenameColumn`
+- `UpdateColumnType`
+- `UpdateColumnPosition`
+- `UpdateColumnNullability`
+- `UpdateColumnComment`
+
+:::info
+The default column position is `LAST` when you add a column. If you add a non nullability column, there may be compatibility issue.
+:::
+
+:::info
+Iceberg just supports update primitive types.
+:::
+
+:::caution
+If you update a nullability column to non nullability, there may be compatibility issue.
+:::
+
+## HDFS configuration
+
+You can place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-iceberg/conf` directory to automatically load as the default HDFS configuration.
+
+:::caution
+When writing to HDFS, the Gravitino Iceberg REST server can only operate as the specified HDFS user and doesn't support proxying to other HDFS users. See [How to access Apache Hadoop](gravitino-server-config) for more details.
+:::
\ No newline at end of file