World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[Minor] Minor formating and changes to fit with the style guide. (#1126)
Justin Mclean3970fd0fbb6a
diff --git a/docs/apache-hive-catalog.md b/docs/apache-hive-catalog.mdindex 71b19801ce..3c0d5bf7aa 100644--- a/docs/apache-hive-catalog.md+++ b/docs/apache-hive-catalog.md@@ -47,7 +47,7 @@ The Hive catalog supports to create, update, and delete databases in the HMS.### Schema propertiesSchema properties supply or set metadata for the underlying Hive database.-The following table lists predefined schema properties for the Hive database. In addition, you can also define your own key-value pair properties, which can also be transmitted to the underlying Hive database.+The following table lists predefined schema properties for the Hive database. Additionally, you can define your own key-value pair properties and transmit them to the underlying Hive database.| Property name | Description | Default value | Required | Since Version ||---------------|--------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|----------|---------------|@@ -57,7 +57,6 @@ The following table lists predefined schema properties for the Hive database. Insee [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino#schemas-operations).-## Table### Table capabilities@@ -67,7 +66,7 @@ The Hive catalog supports to create, update, and delete tables in the HMS.#### Table partitionsThe Hive catalog supports [partitioned tables](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-PartitionedTables). Users can create partitioned tables in the Hive catalog with specific partitioning attribute.-Although Gravitino supports several partitioning strategies, the Apache Hive inherently only supports a single partitioning strategy(partitioned by column), therefore the Hive catalog only support `Identity` partitioning.+Although Gravitino supports several partitioning strategies, the Apache Hive inherently only supports a single partitioning strategy (partitioned by column), therefore the Hive catalog only support `Identity` partitioning.:::cautionThe `fieldName` specified in the partitioning attribute must be a column defined in the table.@@ -76,7 +75,7 @@ The `fieldName` specified in the partitioning attribute must be a column defined#### Table sort orders and distributionsThe Hive catalog supports [bucketed sorted tables](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-BucketedSortedTables). Users can create bucketed sorted tables in the Hive catalog with specific `distribution` and `sortOrders` attributes.-Although Gravitino supports several distribution strategies, the Apache Hive inherently only supports a single distribution strategy(clustered by column), therefore the Hive catalog only support `Hash` distribution.+Although Gravitino supports several distribution strategies, the Apache Hive inherently only supports a single distribution strategy (clustered by column), therefore the Hive catalog only support `Hash` distribution.:::cautionThe `fieldName` specified in the `distribution` and `sortOrders` attribute must be a column defined in the table.@@ -113,7 +112,7 @@ The following table lists the data types mapped from the Hive catalog to the Gra### Table propertiesTable properties supply or set metadata for the underlying Hive tables.-The following table lists predefined table properties for the Hive table. In addition, you can also define your own key-value pair properties, which can also be transmitted to the underlying Hive table.+The following table lists predefined table properties for the Hive table. Additionally, you can define your own key-value pair properties and transmit them to the underlying Hive database.| Property Name | Description | Default Value | Required | Since version ||--------------------|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------------|@@ -125,7 +124,7 @@ The following table lists predefined table properties for the Hive table. In add| `serde-lib` | The serde library class for the table. Such as `org.apache.hadoop.hive.ql.io.orc.OrcSerde`. | The property `format` sets the default value `org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe` and can change it to a different default. | No | 0.2.0 || `serde.parameter.` | The prefix of the serde parameter. Such as `"serde.parameter.orc.create.index" = "true"` indicate `ORC` serde lib to create row indexes | (none) | No | 0.2.0 |-Some properties are reserved, which are automatically added and managed by Hive. Users are not allowed to set these properties.+Hive automatically adds and manages some reserved properties. Users aren't allowed to set these properties.| Property Name | Description | Since Version ||-------------------------|---------------------------------------------------|---------------|diff --git a/docs/docker-image-details.md b/docs/docker-image-details.mdindex 0d90fb3d16..c12bdd9b86 100644--- a/docs/docker-image-details.md+++ b/docs/docker-image-details.md@@ -23,6 +23,7 @@ docker run --rm -d -p 8090:8090 datastrato/gravitinoChangeloggravitino:0.3.0+- Docker image `datastrato/gravitino:0.3.0`- Gravitino Server- Expose ports:@@ -31,7 +32,7 @@ gravitino:0.3.0## Playground Docker image-You can use the [playground](https://github.com/datastrato/gravitino-playground) to experience the whole Gravitino system with other components.+You can use the [playground](https://github.com/datastrato/gravitino-playground) to experience the whole Gravitino system with other components.The playground consists of multiple Docker images.@@ -77,22 +78,22 @@ Changelog- Rollback `Map container hostname to 127.0.0.1 before starting Hadoop` of `datastrato/gravitino-ci-hive:0.1.4`- gravitino-ci-hive:0.1.4- - Config HDFS DataNode data transfer address to `0.0.0.0:50010` explicitly- - Map container hostname to `127.0.0.1` before starting Hadoop+ - Configure HDFS DataNode data transfer address to be `0.0.0.0:50010`+ - Map the container hostname to `127.0.0.1` before starting Hadoop- Expose `50010` port for the HDFS DataNode- gravitino-ci-hive:0.1.3- - change Mysql bind-address from `127.0.0.1` to `0.0.0.0`- - add `iceberg` to Mysql users with password `iceberg`- - export `3306` port for Mysql+ - Change MySQL bind-address from `127.0.0.1` to `0.0.0.0`+ - Add `iceberg` to MySQL users with password `iceberg`+ - Export `3306` port for MySQL- gravitino-ci-hive:0.1.2- - base on `datastrato/gravitino-ci-hive:0.1.1`+ - Based on `datastrato/gravitino-ci-hive:0.1.1`- Modify `fs.defaultFS` from `local` to `0.0.0.0` in the `core-site.xml` file.- - Expose `9000` port int the `Dockerfile` file.+ - Expose `9000` port in the `Dockerfile` file.- gravitino-ci-hive:0.1.1- - base on `datastrato/gravitino-ci-hive:0.1.0`+ - Based on `datastrato/gravitino-ci-hive:0.1.0`- Modify HDFS/YARN/HIVE `MaxPermSize` from `8GB` to `128MB`- Modify `HADOOP_HEAPSIZE` from `8192` to `128`@@ -107,13 +108,13 @@ Changelog- `50075` HDFS DataNode HTTP server- `50010` HDFS DataNode data transfer- `8088` YARN Service- - `9083` Hive Metastore+ - `9083` Hive metastore- `10000` HiveServer2- `10002` HiveServer2 HTTP## Gravitino CI Trino image-You can use this kind of images to test Trino.+You can use this image to test Trino.Changelog@@ -122,6 +123,6 @@ Changelog- gravitino-ci-trino:0.1.0- Docker image `datastrato/gravitino-ci-trino:0.1.0`- - Base on `trinodb/trino:426` and removed some unused plugins from it.+ - Based on `trinodb/trino:426` and removed some unused plugins from it.- Expose ports:- `8080` Trino JDBC portdiff --git a/docs/gravitino-server-config.md b/docs/gravitino-server-config.mdindex 3506996085..62be1668c2 100644--- a/docs/gravitino-server-config.md+++ b/docs/gravitino-server-config.md@@ -9,9 +9,9 @@ This software is licensed under the Apache License version 2."## Introduction-Gravitino supports several configurations:+Gravitino supports several configurations:1. **Gravitino server configuration**: Used to start up Gravitino server.-2. **Gravitino catalog properties configuration**: Used to make default values for different catalogs.+2. **Gravitino catalog properties configuration**: Used to make default values for different catalogs.3. **Some other configurations**: Includes configurations such as HDFS configuration.## Gravitino server configurations@@ -55,7 +55,7 @@ It's highly recommend that you change the default value of `gravitino.entity.sto| Configuration item | Description | Default value | Required | Since version ||----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|-| `gravitino.catalog.cache.evictionIntervalMs` | The interval in milliseconds to evict the catalog cache, default 3600000ms(1h) | `3600000` | No | 0.1.0 |+| `gravitino.catalog.cache.evictionIntervalMs` | The interval in milliseconds to evict the catalog cache, default 3600000ms(1h). | `3600000` | No | 0.1.0 || `gravitino.catalog.classloader.isolated` | Whether to use an isolated classloader for catalog, if true, an isolated classloader loads all catalog-related libraries and configurations, not the AppClassLoader. The default value is `true`. | `true` | No | 0.1.0 |### Auxiliary service configuration@@ -64,7 +64,7 @@ It's highly recommend that you change the default value of `gravitino.entity.sto|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|| `gravitino.auxService.names ` | The auxiliary service name of the Gravitino Iceberg REST server, use **`iceberg-rest`** for the Gravitino Iceberg REST server. | (none) | 0.2.0 |-Please refer to [Iceberg REST catalog service](iceberg-rest-service) for Iceberg rest catalog service configurations.+Please refer to [Iceberg REST catalog service](iceberg-rest-service) for Iceberg REST catalog service configurations.### Security configuration@@ -75,12 +75,12 @@ Please refer to [security](security) for HTTPS and Authentication configurationsThere are three types of catalog properties:1. **Gravitino-defined properties**: These properties simplify the catalog creation process.-2. **Properties with the `gravitino.bypass.` prefix**: These properties are not managed by Gravitino; instead, they bypass the underlying system for advanced usage.-3. **Other properties**: Stored in Gravitino storage, these properties do not bypass the underlying system.+2. **Properties with the `gravitino.bypass.` prefix**: These properties aren't managed by Gravitino; instead, they bypass the underlying system for advanced usage.+3. **Other properties**: Stored in Gravitino storage, these properties don't bypass the underlying system.-Catalog properties are either defined in catalog configuration files as default values or specified explicitly when creating a catalog.+Catalog properties are either defined in catalog configuration files as default values or specified explicitly when creating a catalog.-:::info+:::infoExplicit specifications take precedence over the formal configurations.:::@@ -88,11 +88,11 @@ Explicit specifications take precedence over the formal configurations.These rules only apply on the catalog properties, doesn't affect on the schema or table properties.:::-| catalog provider | catalog properties | catalog properties configuration file path |+| catalog provider | catalog properties | catalog properties configuration file path ||---------------------|--------------------------------------------------------------------------------------|----------------------------------------------------------|| `hive` | [Hive catalog properties](apache-hive-catalog#catalog-properties) | `catalogs/hive/conf/hive.conf` |-| `lakehouse-iceberg` | [Lakehouse Iceberg catalog properties](lakehouse-iceberg-catalog#catalog-properties) | `catalogs/lakehouse-iceberg/conf/lakehouse-iceberg.conf` |-| `jdbc-mysql` | [MySQL catalog properties](jdbc-mysql-catalog#catalog-properties) | `catalogs/jdbc-mysql/conf/jdbc-mysql.conf` |+| `lakehouse-iceberg` | [Lakehouse Iceberg catalog properties](lakehouse-iceberg-catalog#catalog-properties) | `catalogs/lakehouse-iceberg/conf/lakehouse-iceberg.conf` |+| `jdbc-mysql` | [MySQL catalog properties](jdbc-mysql-catalog#catalog-properties) | `catalogs/jdbc-mysql/conf/jdbc-mysql.conf` || `jdbc-postgresql` | [PostgreSQL catalog properties](jdbc-postgresql-catalog#catalog-properties) | `catalogs/jdbc-postgresql/conf/jdbc-postgresql.conf` |:::infodiff --git a/docs/how-to-sign-releases.md b/docs/how-to-sign-releases.mdindex 72573b0ce8..30ede9464b 100644--- a/docs/how-to-sign-releases.md+++ b/docs/how-to-sign-releases.md@@ -5,7 +5,7 @@ license: "Copyright 2023 Datastrato Pvt Ltd.This software is licensed under the Apache License version 2."----These instructions provide a guide on signing and verifying Gravitino releases, enhancing the security of releases. Having a signed release allows people to confirm the release's author and guarantees that the code has not been altered.+These instructions provide a guide on signing and verifying Gravitino releases, enhancing the security of releases. A signed release enables people to confirm the author of the release and guarantees that the code hasn't been altered.## Prerequisitesdiff --git a/docs/how-to-test.md b/docs/how-to-test.mdindex c8f723d1f6..c25b83533f 100644--- a/docs/how-to-test.md+++ b/docs/how-to-test.md@@ -67,9 +67,9 @@ Deploy the Gravitino server locally to run the integration tests. Follow these s## Skip tests-- You can skip unit tests by using the `./gradlew build -PskipTests` command.-- You can skip integration tests by using the `./gradlew build -PskipITs` command.-- You can skip both unit tests and integration tests by using the `./gradlew build -x test` or `./gradlew build -PskipTests -PskipITs` commands.+* You can skip unit tests by using the `./gradlew build -PskipTests` command.+* You can skip integration tests by using the `./gradlew build -PskipITs` command.+* You can skip both unit tests and integration tests by using the `./gradlew build -x test` or `./gradlew build -PskipTests -PskipITs` commands.## Docker test environment@@ -127,27 +127,27 @@ Gravitino project and set breakpoints anywhere.This mode is closer to the actual environment but more complex to debug. To debug the Gravitinoserver code, follow these steps:-- Run the `./gradlew build -x test` command to build the Gravitino project.-- Use the `./gradlew compileDistribution` command to republish the packaged project in the `distribution` directory.-- If you only debug integration test codes, You don't have to do any setup to debug directly.-- If you need to debug Gravitino server codes, follow these steps:- - Enable the `GRAVITINO_DEBUG_OPTS` environment variable in the- `distribution/package/conf/gravitino-env.sh` file to enable remote JVM debugging.- - Manually start the Gravitino server using the `./distribution/package/bin/gravitino.sh- start` command.- - Select `gravitino.server.main` module classpath in the `Remote JVM Debug` to attach the- Gravitino server process and debug it.+* Run the `./gradlew build -x test` command to build the Gravitino project.+* Use the `./gradlew compileDistribution` command to republish the packaged project in the `distribution` directory.+* If you only debug integration test codes, You don't have to do any setup to debug directly.+* If you need to debug Gravitino server codes, follow these steps:+ * Enable the `GRAVITINO_DEBUG_OPTS` environment variable in the+ `distribution/package/conf/gravitino-env.sh` file to enable remote JVM debugging.+ * Manually start the Gravitino server using the `./distribution/package/bin/gravitino.sh+ start` command.+ * Select `gravitino.server.main` module classpath in the `Remote JVM Debug` to attach the+ Gravitino server process and debug it.## Running on GitHub actions-- GitHub Actions automatically run integration tests in the embedded and deploy mode when you+* GitHub Actions automatically run integration tests in the embedded and deploy mode when yousubmit a pull request.-- View the test results in the `Actions` tab of the pull request page.-- Run the integration tests in several steps:- - The Gravitino integration tests pull the CI Docker image from the Docker Hub repository. This step typically takes around 15 seconds.- - If you set the `debug action` label in the pull request, GitHub actions runs an SSH server with `csexton/debugger-action@master`, allowing you to log in to the actions environment for remote debugging.- - The Gravitino project compiles and packages in the `distribution` directory using the `./gradlew compileDistribution` command.- - Run the `./gradlew test -PtestMode=[embedded|deploy]` command.+* View the test results in the `Actions` tab of the pull request page.+* Run the integration tests in several steps:+ * The Gravitino integration tests pull the CI Docker image from the Docker Hub repository. This step typically takes around 15 seconds.+ * If you set the `debug action` label in the pull request, GitHub actions runs an SSH server with `csexton/debugger-action@master`, allowing you to log in to the actions environment for remote debugging.+ * The Gravitino project compiles and packages in the `distribution` directory using the `./gradlew compileDistribution` command.+ * Run the `./gradlew test -PtestMode=[embedded|deploy]` command.## Test failurediff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.mdindex 70c74bcefb..4e6f266b71 100644--- a/docs/iceberg-rest-service.md+++ b/docs/iceberg-rest-service.md@@ -23,7 +23,7 @@ Builds with Apache Iceberg `1.3.1`. The Apache Iceberg table format version is `::::::info-Builds with hadoop 2.10.x, there may compatibility issue when accessing hadoop 3.x clusters.+Builds with Hadoop 2.10.x, there may compatibility issue when accessing Hadoop 3.x clusters.:::## How to start the Gravitino Iceberg REST catalog service@@ -81,12 +81,12 @@ You must download the corresponding JDBC driver to the `catalogs/lakehouse-icebe::::::info-`gravitino.auxService.iceberg-rest.jdbc-driver` is not required unless Gravitino manages multi JDBC drivers.+`gravitino.auxService.iceberg-rest.jdbc-driver` isn't required unless Gravitino manages multi JDBC drivers.:::### Other Apache Iceberg catalog properties-You can add other properties defined in [Iceberg table properties](https://iceberg.apache.org/docs/1.3.1/configuration/).+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 | Required |@@ -148,4 +148,4 @@ CREATE TABLE dml.test (id bigint COMMENT 'unique id') using icebergDESCRIBE 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/index.md b/docs/index.mdindex 2da5d3a6c4..c19b263eac 100644--- a/docs/index.md+++ b/docs/index.md@@ -5,7 +5,7 @@ license: "Copyright 2023 Datastrato Pvt Ltd.This software is licensed under the Apache License version 2."----## What is Gravitino?+## What's Gravitino?Gravitino is a high-performance, geo-distributed, and federated metadata lake. It manages themetadata directly in different sources, types, and regions. It also provides users with unified@@ -85,7 +85,7 @@ Gravitino provides several ways to configure and manage the Gravitino server. PlGravitino supports different catalogs to manage the metadata in different sources. Please see:-* [Lakehouse Iceberg catalog](./lakehouse-iceberg-catalog): a complete guide to use Gravitino+* [Lakehouse Iceberg catalog](./lakehouse-iceberg-catalog): a complete guide to use Gravitinomanage Apache Iceberg data.* [How to set up Gravitino Apache Iceberg REST catalog service](./iceberg-rest-service): acomplete guide to use Gravitino as Apache Iceberg REST catalog service.diff --git a/docs/jdbc-mysql-catalog.md b/docs/jdbc-mysql-catalog.mdindex bb42f9ef14..7d54fd976c 100644--- a/docs/jdbc-mysql-catalog.md+++ b/docs/jdbc-mysql-catalog.md@@ -10,16 +10,20 @@ This software is licensed under the Apache License version 2."---## Introduction+Gravitino provides the ability to manage MySQL metadata.## Catalog+### Catalog capabilities-- Supports metadata management of MySQL(5.6, 5.7, 8.0).++- Supports metadata management of MySQL (5.6, 5.7, 8.0).- Supports DDL operation for MySQL databases and tables.- Doesn't support table index operations.- Doesn't support setting certain column properties, such as default value and check constraints.### Catalog properties+Any property that isn't defined by Gravitino can pass to MySQL data source by adding `gravitino.bypass` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.You can check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)@@ -28,7 +32,7 @@ If you use JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user`| Configuration item | Description | Default value | Required | Since Version ||-------------------------|------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|| `jdbc-url` | JDBC URL for connecting to the database. For example `jdbc:mysql://localhost:3306` | (none) | Yes | 0.3.0 |-| `jdbc-driver` | The driver of the jdbc connection. For example `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver`. | (none) | Yes | 0.3.0 |+| `jdbc-driver` | The driver of the JDBC connection. For example `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver`. | (none) | Yes | 0.3.0 || `jdbc-user` | The JDBC user name. | (none) | Yes | 0.3.0 || `jdbc-password` | The JDBC password. | (none) | Yes | 0.3.0 || `jdbc.pool.min-size` | The minimum number of connections in the pool. `2` by default. | `2` | No | 0.3.0 |@@ -39,23 +43,30 @@ You must download the corresponding JDBC driver to the `catalogs/jdbc-mysql/libs:::### Catalog operations+see [Manage metadata using Gravitino](./manage-metadata-using-gravitino#catalogs-operations).## Schema+### Schema capabilities+- Gravitino schema corresponds to the MySQL database.- Support create schema with comments.- Support drop schema.- Doesn't support cascade drop database.### Schema properties+- Doesn't support are database property settings.### Schema operations+see [Manage metadata using Gravitino](./manage-metadata-using-gravitino#schemas-operations).## Table+### Table capabilities+- Gravitino table corresponds to the MySQL table.- Supports DDL operation for MySQL tables.- Doesn't support setting certain column properties, such as default value and check constraints.@@ -63,7 +74,8 @@ see [Manage metadata using Gravitino](./manage-metadata-using-gravitino#schemas-- Doesn't support table property settings.#### Table column types-| Gravitino Type | Mysql Type |++| Gravitino Type | MySQL Type ||------------------|-------------|| `Byte` | `Tinyint` || `Short` | `Smallint` |@@ -85,10 +97,13 @@ MySQL doesn't support Gravitino `Boolean` `Fixed` `Struct` `List` `Map` `Timesta:::### Table properties+- Doesn't support table properties.### Table operations+#### Alter table operations+Supports operations:- `RenameTable`- `UpdateComment`@@ -101,9 +116,9 @@ Supports operations:- `UpdateColumnComment`:::info-The `RenameTable` operation cannot be submitted at the same time as other operations+You cannot submit the `RenameTable` operation at the same time as other operations.::::::cautionIf you update a nullability column to non nullability, there may be compatibility issue.-:::\ No newline at end of file+:::diff --git a/docs/jdbc-postgresql-catalog.md b/docs/jdbc-postgresql-catalog.mdindex 195440e909..675c6590b1 100644--- a/docs/jdbc-postgresql-catalog.md+++ b/docs/jdbc-postgresql-catalog.md@@ -10,17 +10,21 @@ This software is licensed under the Apache License version 2."---## Introduction+Gravitino provides the ability to manage PostgreSQL metadata.## Catalog+### Catalog capabilities+- Gravitino catalog corresponds to the PostgreSQL database.-- Supports metadata management of PostgreSQL(9.2, 12.0, 13.0).+- Supports metadata management of PostgreSQL (9.2, 12.0, 13.0).- Supports DDL operation for PostgreSQL schemas and tables.- Doesn't support table index operations.- Doesn't support setting certain column properties, such as default value and check constraints### Catalog properties+Any property that isn't defined by Gravitino can pass to MySQL data source by adding `gravitino.bypass` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.You can check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)@@ -29,8 +33,8 @@ If you use JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-datab| Configuration item | Description | Default value | Required | Since Version ||----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|| `jdbc-url` | JDBC URL for connecting to the database. You need to specify the database in the URL. For example `jdbc:postgresql://localhost:3306/pg_database?sslmode=require`. | (none) | Yes | 0.3.0 |-| `jdbc-driver` | The driver of the jdbc connection. For example `org.postgresql.Driver`. | (none) | Yes | 0.3.0 |-| `jdbc-database` | The database of the JDBC connection. Needs to be configured with the same value as database in `jdbc-url`. For example `pg_database`. | (none) | Yes | 0.3.0 |+| `jdbc-driver` | The driver of the JDBC connection. For example `org.postgresql.Driver`. | (none) | Yes | 0.3.0 |+| `jdbc-database` | The database of the JDBC connection. Configure it with the same value as the database in the `jdbc-url`. For example `pg_database`. | (none) | Yes | 0.3.0 || `jdbc-user` | The JDBC user name. | (none) | Yes | 0.3.0 || `jdbc-password` | The JDBC password. | (none) | Yes | 0.3.0 || `jdbc.pool.min-size` | The minimum number of connections in the pool. `2` by default. | `2` | No | 0.3.0 |@@ -38,21 +42,24 @@ If you use JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-datab:::cautionYou must download the corresponding JDBC driver to the `catalogs/jdbc-postgresql/libs` directory.-You must explicitly specify the database in both `jdbc-url` and `jdbc-database`. The values in both must be consistent; otherwise, an error will occur.+You must explicitly specify the database in both `jdbc-url` and `jdbc-database`. An error may occur if the values in both aren't consistent.::::::infoIn PostgreSQL, the database corresponds to the Gravitino catalog, and the schema corresponds to the Gravitino schema.:::### Catalog operations+see [Manage metadata using Gravitino](./manage-metadata-using-gravitino#catalogs-operations).## Schema+### Schema capabilities+- Gravitino schema corresponds to the PostgreSQL schema.-- Support create schema with comments.-- Support drop schema.-- Support cascade drop schema.+- Supports create schema with comments.+- Supports drop schema.+- Supports cascade drop schema.### Schema properties- Doesn't are schema property settings.@@ -93,11 +100,15 @@ PostgreSQL doesn't support Gravitino `Fixed` `Struct` `List` `Map` `IntervalDay`:::### Table properties+- Doesn't support table properties.### Table operations+#### Alter table operations+Supports operations:+- `RenameTable`- `UpdateComment`- `AddColumn`@@ -108,10 +119,10 @@ Supports operations:- `UpdateColumnComment`:::info-The `RenameTable` operation cannot be submitted at the same time as other operations+You can't submit the `RenameTable` operation at the same time as other operations.::::::caution-PostgreSQL does not support the `UpdateColumnPosition` operation, so you can only use `ColumnPosition.defaultPosition()` when `AddColumn`.+PostgreSQL doesn't support the `UpdateColumnPosition` operation, so you can only use `ColumnPosition.defaultPosition()` when `AddColumn`.If you update a nullability column to non nullability, there may be compatibility issue.-:::\ No newline at end of file+:::diff --git a/docs/lakehouse-iceberg-catalog.md b/docs/lakehouse-iceberg-catalog.mdindex 8ffe4738fc..95637f2f4f 100644--- a/docs/lakehouse-iceberg-catalog.md+++ b/docs/lakehouse-iceberg-catalog.md@@ -20,10 +20,10 @@ Builds with Apache Iceberg `1.3.1`. The Apache Iceberg table format version is `::::::info-Builds with hadoop 2.10.x, there may compatibility issue when accessing hadoop 3.x clusters.+Builds with Hadoop 2.10.x, there may compatibility issue when accessing Hadoop 3.x clusters.:::-## Catalog+## Catalog### Catalog capabilities@@ -50,7 +50,7 @@ If you are using JDBC catalog, you must provide `jdbc-user`, `jdbc-password` and| `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 |+| `jdbc-initialize` | Whether to initialize meta tables when create JDBC catalog | `true` | No | 0.2.0 |:::cautionYou must download the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory.@@ -58,7 +58,7 @@ You must download the corresponding JDBC driver to the `catalogs/lakehouse-icebe### Catalog operations-## Schema+## Schema### Schema capabilities@@ -70,13 +70,14 @@ You could put properties except `comment`.### Schema operations-## Table+## Table### Table capabilities#### Table partitionsSupports transforms:+- `IdentityTransform`- `BucketTransform`- `TruncateTransform`@@ -88,7 +89,7 @@ Supports transforms::::infoIceberg doesn't support multi fields in `BucketTransform`.:::-+:::infoIceberg doesn't support `ApplyTransform`, `RangeTransform` and `ListTransform`.:::@@ -96,6 +97,7 @@ Iceberg doesn't support `ApplyTransform`, `RangeTransform` and `ListTransform`.### Table sort orderssupports expressions:+- `FieldReference`- `FunctionExpression`- `bucket`@@ -114,11 +116,10 @@ For `bucket` and `truncate`, the first argument must be integer literal, the sec- Doesn't support `Distribution`, you should use `BucketPartition` instead.:::info-If you load Iceberg table, the table distribution strategy maybe `hash` with num 0, which means no distribution.+If you load Iceberg tables, the table distribution strategy is `hash` with num 0, which means no distribution.:::--### Table column types+### Table column types| Gravitino Type | Apache Iceberg Type ||-----------------------------|-----------------------------|@@ -144,12 +145,11 @@ If you load Iceberg table, the table distribution strategy maybe `hash` with numApache Iceberg doesn't support Gravitino `Varchar` `Fixedchar` `Byte` `Short` `Union` type.:::-### Table propertiesYou 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.+The Gravitino server doesn't allow passing the following reserved fields.| Configuration item | Description ||---------------------------|---------------------------------------------------------|@@ -166,6 +166,7 @@ Gravitino server reserves the following fields which can't be passed.#### Alter table operationsSupports operations:+- `RenameTable`- `SetProperty`- `RemoveProperty`@@ -179,15 +180,15 @@ Supports operations:- `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.+The default column position is `LAST` when you add a column. If you add a non nullability column, there may be compatibility issues.::::::info-Iceberg just supports update primitive types.+Iceberg just supports updating primitive types.::::::caution-If you update a nullability column to non nullability, there may be compatibility issue.+If you update a nullability column to non nullability, there may be compatibility issues.:::## HDFS configurationdiff --git a/docs/manage-metadata-using-gravitino.md b/docs/manage-metadata-using-gravitino.mdindex f9dcebf783..7bf494b023 100644--- a/docs/manage-metadata-using-gravitino.md+++ b/docs/manage-metadata-using-gravitino.md@@ -10,7 +10,7 @@ import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';This page introduces how to manage metadata by Gravitino. Through Gravitino, you can create, edit, and delete metadata-like metalakes, catalogs, schemas, and tables. The following contents are included in this page:+like metalakes, catalogs, schemas, and tables. This page includes the following contents:In this document, Gravitino uses Apache Hive catalog as an example to show how to manage metadata by Gravitino. Other catalogs are similar to Hive catalog,but they may have some differences, especially in catalog property, table property and column type. For more details, please refer to the related doc.@@ -60,7 +60,6 @@ GravitinoMetaLake newMetalake = gravitinoClient.createMetalake(You can create a metalake by sending a `GET` request to the `/api/metalakes/{metalake_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a metalake:-<Tabs><TabItem value="bash" label="Bash">@@ -124,7 +123,7 @@ GravitinoMetaLake renamed = gravitinoClient.alterMetalake(Currently, Gravitino supports the following changes to a metalake:-| Supported modification | Json | Java |+| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|-------------------------------------------------|| Rename metalake | `{"@type":"rename","newName":"metalake_renamed"}` | `MetalakeChange.rename("metalake_renamed")` || Update comment | `{"@type":"updateComment","newComment":"new_comment"}` | `MetalakeChange.updateComment("new_comment")` |@@ -193,12 +192,11 @@ GravitinoMetaLake[] allMetalakes = gravitinoClient.listMetalakes();:::tipUsers should create a metalake before creating a catalog.-The code below is an example of creating a Hive catalog. For other catalogs, the code is similar, but the catalog type, provider and properties may be different. For more details, please refer to the related doc.+The code below is an example of creating a Hive catalog. For other catalogs, the code is similar, but the catalog type, provider, and properties may be different. For more details, please refer to the related doc.:::You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or just use the Gravitino Java client. The following is an example of creating a catalog:-<Tabs><TabItem value="bash" label="Bash">@@ -246,12 +244,12 @@ Catalog catalog = gravitinoMetaLake.createCatalog(Currently, Gravitino supports the following catalog providers:-| Catalog provider | Catalog property |+| Catalog provider | Catalog property ||---------------------|-----------------------------------------------------------------------------|-| `hive` | [Hive catalog property](./apache-hive-catalog#catalog-properties) |-| `lakehouse-iceberg` | [Iceberg catalog property](./lakehouse-iceberg-catalog#catalog-properties) |-| `jdbc-mysql` | [MySQL catalog property](./jdbc-mysql-catalog#catalog-properties) |-| `jdbc-postgresql` | [PostgreSQL catalog property](./jdbc-postgresql-catalog#catalog-properties) |+| `hive` | [Hive catalog property](./apache-hive-catalog#catalog-properties) |+| `lakehouse-iceberg` | [Iceberg catalog property](./lakehouse-iceberg-catalog#catalog-properties) |+| `jdbc-mysql` | [MySQL catalog property](./jdbc-mysql-catalog#catalog-properties) |+| `jdbc-postgresql` | [PostgreSQL catalog property](./jdbc-postgresql-catalog#catalog-properties) |### Load a catalog@@ -324,7 +322,7 @@ Catalog catalog = gravitinoMetaLake.alterCatalog(NameIdentifier.of("metalake", "Currently, Gravitino supports the following changes to a catalog:-| Supported modification | Json | Java |+| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|------------------------------------------------|| Rename metalake | `{"@type":"rename","newName":"metalake_renamed"}` | `CatalogChange.rename("catalog_renamed")` || Update comment | `{"@type":"updateComment","newComment":"new_comment"}` | `CatalogChange.updateComment("new_comment")` |@@ -361,7 +359,7 @@ gravitinoMetaLake.dropCatalog(NameIdentifier.of("metalake", "catalog"));</Tabs>:::note-Drop a catalog only removes metadata about the catalog and schemas, tables under the catalog in Gravitino, It doesn't remove the real data(table and schema) in Apache Hive.+Drop a catalog only removes metadata about the catalog and schemas, tables under the catalog in Gravitino, It doesn't remove the real data (table and schema) in Apache Hive.:::### List all catalogs in a metalake@@ -450,19 +448,17 @@ Schema schema = supportsSchemas.createSchema(Currently, Gravitino supports the following schema property:-| Catalog provider | Schema property |+| Catalog provider | Schema property ||---------------------|---------------------------------------------------------------------------|-| `hive` | [Hive schema property](./apache-hive-catalog#schema-properties) |-| `lakehouse-iceberg` | [Iceberg scheme property](./lakehouse-iceberg-catalog#schema-properties) |-| `jdbc-mysql` | [MySQL schema property](./jdbc-mysql-catalog#schema-properties) |-| `jdbc-postgresql` | [PostgreSQL schema property](./jdbc-postgresql-catalog#schema-properties) |-+| `hive` | [Hive schema property](./apache-hive-catalog#schema-properties) |+| `lakehouse-iceberg` | [Iceberg scheme property](./lakehouse-iceberg-catalog#schema-properties) |+| `jdbc-mysql` | [MySQL schema property](./jdbc-mysql-catalog#schema-properties) |+| `jdbc-postgresql` | [PostgreSQL schema property](./jdbc-postgresql-catalog#schema-properties) |### Load a schemaYou can create a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a schema:-<Tabs><TabItem value="bash" label="Bash">@@ -531,12 +527,11 @@ Schema schema = supportsSchemas.alterSchema(NameIdentifier.of("metalake", "hive_Currently, Gravitino supports the following changes to a schema:-| Supported modification | Json | Java |+| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|-----------------------------------------------|| Set a property | `{"@type":"setProperty","property":"key1","value":"value1"}` | `SchemaChange.setProperty("key1", "value1")` || Remove a property | `{"@type":"removeProperty","property":"key1"}` | `SchemaChange.removeProperty("key1")` |-### Drop a schemaYou can remove a schema by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or just use the Gravitino Java client. The following is an example of dropping a schema:@@ -683,13 +678,13 @@ tableCatalog.createTable(In order to create a table, you need to provide the following information:- Table column name and type-- Table property+- Table property#### Gravitino table column typeThe following types that Gravitino supports:-| Type | Java | Json | Description |+| Type | Java | JSON | Description ||---------------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|| Boolean | `Types.BooleanType.get()` | `boolean` | Boolean type || Byte | `Types.ByteType.get()` | `byte` | Byte type, indicates a numerical value of 1 byte |@@ -713,7 +708,7 @@ The following types that Gravitino supports:| List | `Types.ListType.of(elementType, elementNullable)` | `{"type": "list", "containsNull": JSON Boolean, "elementType": type JSON}` | List type, indicate a list of elements with the same type || Map | `Types.MapType.of(keyType, valueType)` | `{"type": "map", "keyType": type JSON, "valueType": type JSON, "valueContainsNull": JSON Boolean}` | Map type, indicate a map of key-value pairs || Struct | `Types.StructType.of([Types.StructType.Field.of(name, type, nullable)])` | `{"type": "struct", "fields": [JSON StructField, {"name": string, "type": type JSON, "nullable": JSON Boolean, "comment": string}]}` | Struct type, indicate a struct of fields |-| Union | `Types.UnionType.of([type1, type2, ...])` | `{"type": "union", "types": [type JSON, ...]}` | Union type, indicate a union of types+| Union | `Types.UnionType.of([type1, type2, ...])` | `{"type": "union", "types": [type JSON, ...]}` | Union type, indicate a union of typesThe related java doc is [here](pathname:///docs/0.3.0/api/java/com/datastrato/gravitino/rel/types/Type.html).@@ -724,10 +719,10 @@ The following is the table property that Gravitino supports:| Catalog provider | Table property | Type mapping ||---------------------|-------------------------------------------------------------------------|-------------------------------------------------------------------------|-| `hive` | [Hive table property](./apache-hive-catalog#table-properties) | [Hive type mapping](./apache-hive-catalog#table-column-types) |-| `lakehouse-iceberg` | [Iceberg table property](./lakehouse-iceberg-catalog#table-properties) | [Iceberg type mapping](./lakehouse-iceberg-catalog#table-column-types) |-| `jdbc-mysql` | [MySQL table property](./jdbc-mysql-catalog#table-properties) | [MySQL type mapping](./jdbc-mysql-catalog#table-column-types) |-| `jdbc-postgresql` | [PostgreSQL table property](./jdbc-postgresql-catalog#table-properties) | [PostgreSQL type mapping](./jdbc-postgresql-catalog#table-column-types) |+| `hive` | [Hive table property](./apache-hive-catalog#table-properties) | [Hive type mapping](./apache-hive-catalog#table-column-types) |+| `lakehouse-iceberg` | [Iceberg table property](./lakehouse-iceberg-catalog#table-properties) | [Iceberg type mapping](./lakehouse-iceberg-catalog#table-column-types) |+| `jdbc-mysql` | [MySQL table property](./jdbc-mysql-catalog#table-properties) | [MySQL type mapping](./jdbc-mysql-catalog#table-column-types) |+| `jdbc-postgresql` | [PostgreSQL table property](./jdbc-postgresql-catalog#table-properties) | [PostgreSQL type mapping](./jdbc-postgresql-catalog#table-column-types) |In addition to the basic settings, Gravitino supports the following features:@@ -739,7 +734,7 @@ In addition to the basic settings, Gravitino supports the following features:| Sorted order table | Equal to `SORTED BY` in Apache Hive, some engine may use different words to describe it. | [SortOrder](pathname:///docs/0.3.0/api/java/com/datastrato/gravitino/rel/expressions/sorts/SortOrder.html) |:::tip-**Those features may not be supported by all catalogs**. Please refer to the related doc for more details.+**Not all catalogs may support those features.**. Please refer to the related document for more details.:::The following is an example of creating a partitioned, bucketed table and sorted order table:@@ -793,8 +788,8 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \"funcArgs": [{"type": "field",- "fieldName": ["score"]- }+ "fieldName": ["score"]+ }]},"sortOrders": [@@ -803,10 +798,10 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \"nullOrder": "NULLS_LAST","sortTerm": {"type": "field",- "fieldName": ["name"]- }+ "fieldName": ["name"]+ }}- ]+ ]}' http://localhost:8090/api/metalakes/metalake/catalogs/catalog/schemas/schema/tables```@@ -944,7 +939,7 @@ Table t = tableCatalog.alterTable(NameIdentifier.of("metalake", "catalog", "scheCurrently, Gravitino supports the following changes to a table:-| Supported modification | Json | Java |+| Supported modification | JSON | Java ||------------------------------------|-----------------------------------------------------------------------------------------------------------------------|---------------------------------------------|| Rename table | `{"@type":"rename","newName":"table_renamed"}` | `TableChange.rename("table_renamed")` || Update comment | `{"@type":"updateComment","newComment":"new_comment"}` | `TableChange.updateComment("new_comment")` |@@ -997,7 +992,7 @@ You can list all tables in a schema by sending a `GET` request to the `/api/meta```bashcurl -X GET -H "Accept: application/vnd.gravitino.v1+json" \-H "Content-Type: application/json" \-http://localhost:8090/api/metalakes/metalake/catalogs/catalog/schemas/schema/tables+http://localhost:8090/api/metalakes/metalake/catalogs/catalog/schemas/schema/tables```</TabItem>@@ -1015,4 +1010,4 @@ NameIdentifier[] identifiers =```</TabItem>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/docs/metrics.md b/docs/metrics.mdindex 257bd3302f..d242836e03 100644--- a/docs/metrics.md+++ b/docs/metrics.md@@ -9,9 +9,9 @@ This software is licensed under the Apache License version 2."## Introduction-Gravitino Metrics is built upon the [Dropwizard Metrics](https://metrics.dropwizard.io/). These metrics are exported through both JMX and an HTTP server, supporting JSON and Prometheus formats. You can retrieve them via HTTP requests, as illustrated below:+Gravitino Metrics builds upon the [Dropwizard Metrics](https://metrics.dropwizard.io/). It exports these metrics through both JMX and an HTTP server, supporting JSON and Prometheus formats. You can retrieve them via HTTP requests, as illustrated below:-```+```shell// Use Gravitino Server address or Iceberg REST server address to replace 127.0.0.1:8090// Get metrics in JSON formatcurl http://127.0.0.1:8090/metrics@@ -27,7 +27,7 @@ HTTP server metrics encompass the histogram of HTTP request processing time andFor instance, you can get Prometheus metrics for `create-table` operation in the Gravitino server as follows:-```+```textgravitino_server_1xx_responses_total{operation="create-table",} 0.0gravitino_server_4xx_responses_total{operation="create-table",} 0.0gravitino_server_5xx_responses_total{operation="create-table",} 0.0diff --git a/docs/overview.md b/docs/overview.mdindex 27d69697a2..5b124a3418 100644--- a/docs/overview.md+++ b/docs/overview.md@@ -45,8 +45,8 @@ others.Unlike the traditional metadata management systems, which need to collect the metadataactively or passively from underlying systems, Gravitino manages these systems directly.-It provides a set of connectors to connect to different metadata sources,-the changes in Gravitino will directly reflect in the underlying systems, and vice versa.+It provides a set of connectors to connect to different metadata sources.+The changes in Gravitino directly reflect in the underlying systems, and vice versa.### Geo-distribution support (WIP)diff --git a/docs/security.md b/docs/security.mdindex 8f4dfceb24..bc7d83fca8 100644--- a/docs/security.md+++ b/docs/security.md@@ -32,8 +32,8 @@ Gravitino only supports external OAuth 2.0 servers.First, users need to guarantee that the external correctly configured OAuth 2.0 server supports Bearer JWT.-Then, on the server side, users should set `gravitino.authenticator` as `oauth` and give-`gravitino.authenticator.oauth.defaultSignKey`, `gravitino.authenticator.oauth.serverUri` and+Then, on the server side, users should set `gravitino.authenticator` as `oauth` and give+`gravitino.authenticator.oauth.defaultSignKey`, `gravitino.authenticator.oauth.serverUri` and`gravitino.authenticator.oauth.tokenPath` a proper value.Next, for the client side, users can enable `OAuth` mode by the following code:@@ -138,7 +138,6 @@ Use the access token to request the Gravitinocurl -v -X GET -H "Accept: application/vnd.gravitino.v1+json" -H "Content-Type: application/json" -H "Authorization: Bearer <access_token>" http://localhost:8090/api/version```-## HTTPSUsers would better use HTTPS instead of HTTP if users choose OAuth 2.0 as the authenticator.@@ -193,7 +192,7 @@ You can follow the steps to set up a HTTPS server.1. Prerequisite- You need to install the JDK8, wget and set the environment JAVA_HOME.+ You need to install the JDK8, wget, and set the environment JAVA_HOME.If you want to use the command `curl` to request the Gravitino server, you should install openSSL.