Skip to content

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

[MINOR] doc: Improve the docs based on #1992 (#2631)

Jerry Shao682e13fb808f
diff --git a/docs/how-to-test.md b/docs/how-to-test.md
index fa68e51eca..fd5d517b23 100644
--- a/docs/how-to-test.md
+++ b/docs/how-to-test.md
@@ -5,26 +5,27 @@ license: "Copyright 2023 Datastrato Pvt Ltd.
This software is licensed under the Apache License version 2."
---
-Gravitino has two types of tests: unit tests and integration tests. Unit tests are mainly
-focused on the functionalities of the specific class, module, or component. Integration tests
-are end-to-end tests that cover the whole system.
+Gravitino has two types of tests:
+
+ - Unit tests, focus on the functionalities of the specific class, module, or component.
+ - Integration tests, end-to-end tests that cover the whole system.
:::note before test
* If you want to run the complete integration test suites, you need to install Docker in your
environment.
-* Please refer to [How to build Gravitino](./how-to-build.md) for more details to make sure you have
+* Refer to [How to build Gravitino](./how-to-build.md) to make sure you have
a build environment ready.
-* [OrbStack](https://orbstack.dev/) can be used to replace Docker Desktop
+* You can use [OrbStack](https://orbstack.dev/) to replace Docker Desktop
on macOS. OrbStack automatically configures the network between the Docker containers.
-* If you are using Docker Desktop for macOS, please launch
+* If you are using Docker Desktop for macOS, launch the
[mac-docker-connector](https://github.com/wenjunxiao/mac-docker-connector) before running the tests.
- You can read `$GRAVITINO_HOME/dev/docker/tools/README.md` and
+ Read `$GRAVITINO_HOME/dev/docker/tools/README.md` and
`$GRAVITINO_HOME/dev/docker/tools/mac-docker-connector.sh` for more details.
:::
## Run the unit tests
-To run the unit test, you can simply run the following command:
+To run the unit tests, run the following command:
```shell
@@ -37,9 +38,9 @@ This command runs all the unit tests and skips the integration tests.
Gravitino has two modes to run the integration tests, the default `embedded` mode and `deploy` mode.
-* With the `embedded` mode, the integration test starts an embedded `MiniGravitino` server
- within the same process of the integration test to run the integration tests.
-* With the `deploy` mode, the user has to build (`./gradlew compileDistribution`) a Gravitino binary package beforehand, the
+* In `embedded` mode, the integration test starts an embedded `MiniGravitino` server
+ within the same process as the integration test to run the integration tests.
+* In `deploy` mode, you have to build (`./gradlew compileDistribution`) a Gravitino binary package beforehand. The
integration test launches and connects to the local Gravitino server to run the integration
tests.
@@ -56,7 +57,7 @@ Running the `./gradlew build` command triggers the build and runs the integratio
### Deploy the Gravitino server and run the integration tests in deploy mode
-Deploy the Gravitino server locally to run the integration tests. Follow these steps:
+To deploy the Gravitino server locally to run the integration tests, follow these steps:
1. Run the `./gradlew build -x test` command to build the Gravitino project.
2. Use the `./gradlew compileDistribution` command to compile and package the Gravitino project
@@ -68,20 +69,20 @@ 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 backend and web frontend integration tests by using the `./gradlew build -PskipITs` command.
-* You can only skip web frontend integration tests by using the `./gradlew build -PskipWebITs` command.
-* You can skip both unit tests and all integration tests by using the `./gradlew build -x test` or `./gradlew build -PskipTests -PskipITs` commands.
+* Skip unit tests by using the `./gradlew build -PskipTests` command.
+* Skip integration tests by using the `./gradlew build -PskipITs` command.
+* Skip web frontend integration tests by using the `./gradlew build -PskipWebITs` command.
+* Skip both unit tests and integration tests by using the `./gradlew build -x test` or `./gradlew build -PskipTests -PskipITs` commands.
## Docker test environment
Some integration test cases depend on the Gravitino CI Docker image.
If an integration test relies on the specific Gravitino CI Docker image,
-you need to set the `@tag(gravitino-docker-it)` annotation in the test class.
+set the `@tag(gravitino-docker-it)` annotation in the test class.
For example, the `integration-test/src/test/.../CatalogHiveIT.java` test needs to connect to
the `datastrato/gravitino-ci-hive` Docker container for testing the Hive data source.
-Therefore, it should have the following `@tag` annotation:`@tag(gravitino-docker-it)`, This annotation
+Therefore, it should have the following `@tag` annotation:`@tag(gravitino-docker-it)`. This annotation
helps identify the specific Docker container required for the integration test.
For example:
@@ -96,14 +97,14 @@ public class CatalogHiveIT extends AbstractIT {
## Running all the integration tests
:::note
-* You should make sure that the `Docker server` is running before running all the
+* Make sure that the `Docker server` is running before running all the
integration tests. Otherwise, it only runs the integration tests without the `gravitino-docker-it` tag.
-* on macOS, please be sure to run the `${GRAVITINO_HOME}/dev/docker/tools/mac-docker-connector.sh`
- script before running the integration tests. Or, you should make sure that
+* On macOS, be sure to run the `${GRAVITINO_HOME}/dev/docker/tools/mac-docker-connector.sh`
+ script before running the integration tests; or make sure that
[OrbStack](https://orbstack.dev/) is running.
:::
-When integration tests run, it checks the whole environment and outputs the status of the
+When integration tests run, they check the whole environment and output the status of the
required environment, for example:
```text
@@ -115,31 +116,33 @@ Using Gravitino IT Docker container to run all integration tests. [deploy test]
-----------------------------------------------------------------
```
-Only when all the required environments are ready, all the integration tests run, otherwise,
-only parts of the integration tests without `gravitino-docker-it` tag run.
+Complete integration tests only run when all the required environments are met. Otherwise,
+only parts of them without the `gravitino-docker-it` tag run.
## How to debug Gravitino server and integration tests in embedded mode
-By default, the integration tests run in the embedded mode, `MiniGravitino` starts in the same process. Debugging `MiniGravitino` is simple and easy. You can modify any code in the Gravitino project and set breakpoints anywhere.
+By default, the integration tests run in the embedded mode, in which `MiniGravitino` starts in the
+same process. Debugging `MiniGravitino` is simple and easy, you can modify any code in the
+Gravitino project and set breakpoints anywhere.
## How to debug Gravitino server and integration tests in deploy mode
-This mode is closer to the actual environment but more complex to debug. To debug the Gravitino server code, follow these steps:
+This mode is closer to the actual environment, but more complex to debug. To debug the Gravitino server 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 are only debugging 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
+ * Select the `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 modes when you
submit a pull request.
* View the test results in the `Actions` tab of the pull request page.
* Run the integration tests in several steps:
@@ -150,7 +153,9 @@ This mode is closer to the actual environment but more complex to debug. To debu
## Test failure
-If a test fails, you can retrieve valuable information from the logs and test reports. Test reports are in the `./build/reports` directory. The integration test logs are in the `./integrate-test/build` directory. In deploy mode, Gravitino server logs are in the `./distribution/package/logs/` directory. In the event of a test failure within the GitHub workflow, the system generates archived logs and test reports. To obtain the archive, follow these steps:
+If a test fails, you can retrieve valuable information from the logs and test reports. Test reports are in the `./build/reports` directory. The integration test logs are in the `./integrate-test/build` directory. In deploy mode, Gravitino server logs are in the `./distribution/package/logs/` directory.
+
+In the event of a test failure within the GitHub workflow, the system generates archived logs and test reports. To obtain the archive, follow these steps:
1. Click the `detail` link associated with the failed integration test in the pull request. This redirects you to the job page.
diff --git a/docs/how-to-use-the-playground.md b/docs/how-to-use-the-playground.md
index f019bbf5ae..03e0f8623e 100644
--- a/docs/how-to-use-the-playground.md
+++ b/docs/how-to-use-the-playground.md
@@ -14,7 +14,7 @@ Depending on your network and computer, startup time may take 3-5 minutes. Once
## Prerequisites
-You first need to install git and docker-compose.
+Install Git and Docker Compose.
## TCP ports used
@@ -38,7 +38,7 @@ cd gravitino-playground
## Experiencing Gravitino with Trino SQL
-1. Login to the Gravitino playground Trino Docker container using the following command.
+1. Log in to the Gravitino playground Trino Docker container using the following command:
```shell
docker exec -it playground-trino bash
@@ -86,9 +86,9 @@ SHOW TABLES from "metalake_demo.catalog_hive".company;
### Cross-catalog queries
-In a company, there may be different departments using different data stacks. In this example, the HR department uses Apache Hive to store its data and the sales department uses PostgreSQL to store its data. You can run some interesting queries by joining the two departments' data together with Gravitino.
+In a company, there may be different departments using different data stacks. In this example, the HR department uses Apache Hive to store its data and the sales department uses PostgreSQL. You can run some interesting queries by joining the two departments' data together with Gravitino.
-If you want to know which employee has the largest sales amount, you can run this SQL.
+To know which employee has the largest sales amount, run this SQL:
```SQL
SELECT given_name, family_name, job_title, sum(total_amount) AS total_sales
@@ -100,7 +100,7 @@ ORDER BY total_sales DESC
LIMIT 1;
```
-If you want to know the top customers who bought the most by state, you can run this SQL.
+To know the top customers who bought the most by state, run this SQL:
```SQL
SELECT customer_name, location, SUM(total_amount) AS total_spent
@@ -112,7 +112,7 @@ GROUP BY location, customer_name
ORDER BY location, SUM(total_amount) DESC;
```
-If you want to know the employee's average performance rating and total sales, you can run this SQL.
+To know the employee's average performance rating and total sales, run this SQL:
```SQL
SELECT e.employee_id, given_name, family_name, AVG(rating) AS average_rating, SUM(total_amount) AS total_sales
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index 668678000c..618dde5d3b 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -21,7 +21,7 @@ The Gravitino Iceberg REST Server follows the [Apache Iceberg REST API specifica
:::info
Builds with Apache Iceberg `1.3.1`. The Apache Iceberg table format version is `1` by default.
-Builds with Hadoop 2.10.x, there may be compatibility issues when accessing Hadoop 3.x clusters.
+Builds with Hadoop 2.10.x. There may be compatibility issues when accessing Hadoop 3.x clusters.
:::
## Gravitino Iceberg REST catalog service configuration
@@ -42,22 +42,22 @@ Please refer to the following sections for details.
| 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.names` | The auxiliary service name of the Gravitino Iceberg REST catalog service. Use **`iceberg-rest`**. | (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 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. | `9001` | No | 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.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 |
-| `gravitino.auxService.iceberg-rest.customFilters` | Comma separated list of filter class names to apply to the APIs. | (none) | No | 0.4.0 |
+| `gravitino.auxService.iceberg-rest.customFilters` | Comma-separated list of filter class names to apply to the APIs. | (none) | No | 0.4.0 |
-The filter in the customFilters should be a standard javax servlet Filter.
-Filter parameters can also be specified in the configuration, by setting config entries of the form `gravitino.auxService.iceberg-rest.<class name of filter>.param.<param name>=<value>`
+The filter in `customFilters` should be a standard javax servlet filter.
+You can also specify filter parameters by setting configuration entries in the style `gravitino.auxService.iceberg-rest.<class name of filter>.param.<param name>=<value>`.
### Iceberg metrics store configuration
@@ -74,28 +74,29 @@ Gravitino provides a pluggable metrics store interface to store and delete Icebe
### Gravitino Iceberg catalog backend configuration
:::info
-The Gravitino Iceberg REST catalog service uses the memory catalog backend by default. You can specify using a Hive or JDBC catalog backend in a production environment.
+The Gravitino Iceberg REST catalog service uses the memory catalog backend by default. You can
+specify a Hive or JDBC catalog backend for production environment.
:::
#### Hive backend 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 |
+| Configuration item | Description | Default value | Required | Since Version |
+|-----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|---------------|------------|---------------|
+| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of the 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 backend 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 **`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 |
+| Configuration item | Description | Default value | Required | Since Version |
+|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|
+| `gravitino.auxService.iceberg-rest.catalog-backend` | The Catalog backend of the 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 the 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 |
:::caution
You must download the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory.
@@ -116,17 +117,17 @@ The `clients` property for example:
### HDFS configuration
-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.
+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 Iceberg REST catalog service
-Starting the Gravitino Iceberg REST catalog service:
+To start the service:
```shell
./bin/gravitino.sh start
```
-How to find out whether the Gravitino Iceberg REST catalog service has started:
+To find out whether the service has started:
```shell
curl http://127.0.0.1:9001/iceberg/application.wadl
@@ -136,13 +137,13 @@ curl http://127.0.0.1:9001/iceberg/application.wadl
### Deploying Apache Spark with Apache Iceberg support
-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.
+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. 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}.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:
diff --git a/docs/index.md b/docs/index.md
index 1f7a4a1118..c2d1452617 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -16,46 +16,45 @@ metadata access for data and AI assets.
## Downloading
You can get Gravitino from the [GitHub release page](https://github.com/datastrato/gravitino/releases),
-or you can build Gravitino from source code, please see [How to build Gravitino](./how-to-build.md).
+or you can build Gravitino from source code. See [How to build Gravitino](./how-to-build.md).
Gravitino runs on both Linux and macOS platforms, and it requires the installation of Java 8, Java 11, or Java 17. Gravitino trino-connector runs with
Trino, and requires Java 17. This should include JVMs on x86_64 and
ARM64. It's easy to run locally on one machine, all you need is to have `java` installed on
your system `PATH`, or the `JAVA_HOME` environment variable pointing to a Java installation.
-See [How to install Gravitino](./how-to-install.md) to learn how to install Gravitino server.
+See [How to install Gravitino](./how-to-install.md) to learn how to install the Gravitino server.
Gravitino provides Docker images on [Docker Hub](https://hub.docker.com/u/datastrato).
-Please pull the image and run it. For the details of the Gravitino Docker image, please see
+Pull the image and run it. For details of the Gravitino Docker image, see
[Docker image details](./docker-image-details.md).
Gravitino also provides a playground to experience the whole Gravitino system with other components.
-Please see the [Gravitino playground repository](https://github.com/datastrato/gravitino-playground)
+See the [Gravitino playground repository](https://github.com/datastrato/gravitino-playground)
and [How to use the playground](./how-to-use-the-playground.md).
## Getting started
-To get started with Gravitino, please see [Getting started](./getting-started.md) for the details.
+To get started with Gravitino, see [Getting started](./getting-started.md) for the details.
-* [Getting started locally](./getting-started.md#getting-started-locally): a quick guide to start
- and use Gravitino locally.
+* [Getting started locally](./getting-started.md#getting-started-locally): a quick guide to starting
+ and using Gravitino locally.
* [Running on Amazon Web Services](./getting-started.md#getting-started-on-amazon-web-services): a
- quick guide to start and use Gravitino on AWS.
+ quick guide to starting and using Gravitino on AWS.
* [Running on Google Cloud Platform](./getting-started.md#getting-started-on-google-cloud-platform):
- a quick guide to start and use Gravitino on GCP.
+ a quick guide to starting and using Gravitino on GCP.
## How to use Gravitino
-Gravitino provides two SDKs to manage metadata from different catalogs in a unified way, one is
-REST API, another is Java SDK. You can use either to manage metadata, please see
-[Manage metadata using Gravitino](./manage-metadata-using-gravitino.md) for the details.
+Gravitino provides two SDKs to manage metadata from different catalogs in a unified way: the
+REST API and the Java SDK. You can use either to manage metadata. See
+[Manage metadata using Gravitino](./manage-metadata-using-gravitino.md) for details.
Also, you can find the complete REST API definition in
-[Gravitino Open API](./api/rest/gravitino-rest-api),
+[Gravitino Open API](./api/rest/gravitino-rest-api), and the
Java SDK definition in [Gravitino Javadoc](pathname:///docs/0.4.0/api/java/index.html).
-Gravitino provides a web UI to manage the metadata, you can visit the web UI in the browser via
-the URL address `http://<ip-address>:8090`. Please see [Gravitino web UI](./webui.md) for the details.
+Gravitino provides a web UI to manage the metadata. Visit the web UI in the browser via `http://<ip-address>:8090`. See [Gravitino web UI](./webui.md) for details.
Gravitino currently supports the following catalogs:
@@ -64,21 +63,20 @@ Gravitino currently supports the following catalogs:
* [**MySQL catalog**](./jdbc-mysql-catalog.md)
* [**PostgreSQL catalog**](./jdbc-postgresql-catalog.md)
-Gravitino also provides an Iceberg REST catalog service for Iceberg table format, please see the
-[Iceberg REST catalog service](./iceberg-rest-service.md) for the details.
+Gravitino also provides an Iceberg REST catalog service for the Iceberg table format. See the
+[Iceberg REST catalog service](./iceberg-rest-service.md) for details.
## Gravitino playground
To experience Gravitino with other components easily, Gravitino provides a playground to run. It
integrates Apache Hadoop, Apache Hive, Trino, MySQL, PostgreSQL, and Gravitino together as a
-complete environment. To experience the whole features, please also see
-[Getting started](./getting-started.md) and [How to use the Gravitino playground](./how-to-use-the-playground.md)
-to learn how to use the playground.
+complete environment. To experience all the features, see
+[Getting started](./getting-started.md) and [How to use the Gravitino playground](./how-to-use-the-playground.md).
* [Install Gravitino playground on AWS or GCP](./getting-started.md#installing-gravitino-playground-on-aws-or-google-cloud-platform):
- a quick guide to start and use Gravitino playground on AWS or GCP.
+ a quick guide to starting and using the Gravitino playground on AWS or GCP.
* [Install Gravitino playground locally](./getting-started.md#installing-gravitino-playground-locally):
- a quick guide to start and use Gravitino playground locally.
+ a quick guide to starting and using the Gravitino playground locally.
* [How to use the Gravitino playground](./how-to-use-the-playground.md): provides an example of how
to use Gravitino and other components together.
@@ -91,26 +89,26 @@ Gravitino supports different catalogs to manage the metadata in different source
* [Iceberg catalog](./lakehouse-iceberg-catalog.md): a complete guide to using Gravitino to
manage Apache Iceberg data.
* [Iceberg REST catalog service](./iceberg-rest-service.md): a
- complete guide to use Gravitino as an Apache Iceberg REST catalog service.
+ complete guide to using Gravitino as an Apache Iceberg REST catalog service.
* [Hive catalog](./apache-hive-catalog.md): a complete guide to using Gravitino to manage Apache Hive data.
* [MySQL catalog](./jdbc-mysql-catalog.md): a complete guide to using Gravitino to manage MySQL data.
* [PostgreSQL catalog](./jdbc-postgresql-catalog.md): a complete guide to using Gravitino to manage PostgreSQL data.
### Trino connector
-Gravitino provides a Trino connector to connect to Gravitino to manage the metadata in a unified
-way. to use the Trino connector, please see:
+Gravitino provides a Trino connector to manage Trino metadata in a unified
+way. To use the Trino connector, see:
-* [How to use Gravitino Trino connector](./trino-connector/index.md): a complete guide to use Gravitino
+* [How to use Gravitino Trino connector](./trino-connector/index.md): a complete guide to using the Gravitino
Trino connector.
### Server administration
-Gravitino provides several ways to configure and manage the Gravitino server. Please see:
+Gravitino provides several ways to configure and manage the Gravitino server. See:
* [Security](./security.md): provides security configurations for Gravitino, including HTTPS
and OAuth2 configurations.
-* [Gravitino metrics](./metrics.md): provides metrics configurations and detailed metrics list
+* [Gravitino metrics](./metrics.md): provides metrics configurations and detailed a metrics list
of the Gravitino server.
### Programming guides
@@ -121,11 +119,11 @@ Gravitino provides several ways to configure and manage the Gravitino server. Pl
### Development guides
-* [How to build Gravitino](./how-to-build.md): a complete guide to build Gravitino from
+* [How to build Gravitino](./how-to-build.md): a complete guide to building Gravitino from
source.
-* [How to test Gravitino](./how-to-test.md): a complete guide to running Gravitino unit tests and
+* [How to test Gravitino](./how-to-test.md): a complete guide to running Gravitino unit and
integration tests.
-* [How to sign and verify Gravitino releases](./how-to-sign-releases.md): a guide to sign and verify
+* [How to sign and verify Gravitino releases](./how-to-sign-releases.md): a guide to signing and verifying
a Gravitino release.
-* [Publish Docker images](./publish-docker-images.md): a guide to publish Gravitino Docker images,
- also list the change logs of Gravitino CI Docker images and release images.
+* [Publish Docker images](./publish-docker-images.md): a guide to publishing Gravitino Docker images;
+ also lists the change logs of Gravitino CI Docker images and release images.
diff --git a/docs/jdbc-mysql-catalog.md b/docs/jdbc-mysql-catalog.md
index 3a6d59f4cd..611abf970f 100644
--- a/docs/jdbc-mysql-catalog.md
+++ b/docs/jdbc-mysql-catalog.md
@@ -33,19 +33,20 @@ Gravitino saves some system information in schema and table comment, like `(From
### 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)
+You can pass to a MySQL data source any property that isn't defined by Gravitino by adding `gravitino.bypass` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.
-If you use JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user` and `jdbc-password` to catalog properties.
+Check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)
-| 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-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 |
-| `jdbc.pool.max-size` | The maximum number of connections in the pool. `10` by default. | `10` | No | 0.3.0 |
+If you use a JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user` and `jdbc-password` to catalog properties.
+
+| 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-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 |
+| `jdbc.pool.max-size` | The maximum number of connections in the pool. `10` by default. | `10` | No | 0.3.0 |
:::caution
You must download the corresponding JDBC driver to the `catalogs/jdbc-mysql/libs` directory.
@@ -53,13 +54,13 @@ You must download the corresponding JDBC driver to the `catalogs/jdbc-mysql/libs
### Catalog operations
-Please refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#catalog-operations) for more details.
+Refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#catalog-operations) for more details.
## Schema
### Schema capabilities
-- Gravitino schema corresponds to the MySQL database.
+- Gravitino's schema concept corresponds to the MySQL database.
- Supports creating schema, but does not support setting comment.
- Supports dropping schema.
- Doesn't support cascade dropping schema.
@@ -70,13 +71,13 @@ Please refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravit
### Schema operations
-Please refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#schema-operations) for more details.
+Refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#schema-operations) for more details.
## Table
### Table capabilities
-- Gravitino table corresponds to the MySQL table.
+- Gravitino's table concept corresponds to the MySQL table.
- Supports DDL operation for MySQL tables.
- Supports index.
- Supports [column default value](./manage-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-metadata-using-gravitino.md#table-column-auto-increment)..
@@ -214,11 +215,12 @@ Index[] indexes = new Index[] {
### Table operations
-Please refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#table-operations) for more details.
+Refer to [Manage Metadata Using Gravitino](./manage-metadata-using-gravitino.md#table-operations) for more details.
#### Alter table operations
-Supports operations:
+Gravitino supports these table alteration operations:
+
- `RenameTable`
- `UpdateComment`
- `AddColumn`
@@ -231,9 +233,6 @@ Supports operations:
- `SetProperty`
:::info
-You cannot submit the `RenameTable` operation at the same time as other operations.
-:::
-
-:::caution
-If you update a nullability column to non nullability, there may be compatibility issues.
+ - You cannot submit the `RenameTable` operation at the same time as other operations.
+ - If you update a nullability column to non-nullability, there may be compatibility issues.
:::