Skip to content

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

[Minor] Update docs to doc standard (#915)

Justin Mcleanb70a6511129c
diff --git a/docs/how-to-build.md b/docs/how-to-build.md
index e4fbb74cbb..63320ab3b7 100644
--- a/docs/how-to-build.md
+++ b/docs/how-to-build.md
@@ -4,29 +4,30 @@ date: 2023-10-03T09:03:20-08:00
license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-## How to Build Gravitino
+## How to build Gravitino
## Prerequisites
+ Linux or macOS operating system
+ Git
-+ A JDK8 or later version installed in your environment to launch Gradle
-+ Docker (optional) to run integration tests
++ A Java Development Kit version 8 or later version installed in your environment to launch Gradle
++ Optionally Docker to run integration tests
Note:
-* Gravitino itself uses JDK8 to build, Gravitino Trino connector uses JDK17 to build. You don't
- have to preinstall JDK8 or JDK17, Gradle will detect the JDK version and download it automatically.
-* Gravitino uses Gradle Java Toolchain to detect and manage JDK version, you can check the
- installed JDK by running `./gradlew javaToolchains` command. For the details of Gradle Java
++ Gravitino itself uses JDK8 to build, Gravitino Trino connector uses JDK17 to build. You don't
+ have to preinstall JDK8 or JDK17, Gradle detects the JDK version needed and downloads it automatically.
+
++ Gravitino uses Gradle Java Toolchain to detect and manage JDK versions, it checks the
+ installed JDK by running `./gradlew javaToolchains` command. For the details of Gradle Java
Toolchain, please see [Gradle Java Toolchain](https://docs.gradle.org/current/userguide/toolchains.html#sec:java_toolchain).
-* Gravitino uses Docker to run integration tests, please make sure you have installed Docker in
- your environment, otherwise some docker related tests will be skipped.
-* On macOS, we will use "docker-connector" to make the Gravitino Trino connector work with Docker
- for Mac. For the details of "docker-connector", please see [docker-connector](https://github.com/wenjunxiao/mac-docker-connector)
- and [here](../dev/docker/tools/README.md).
-## Quick Start
++ Make sure you have installed Docker in your environment as Gravitino uses it to run integration tests; without it, some Docker-related tests may not run.
+
++ OSX uses "docker-connector" to make the Gravitino Trino connector work with Docker
+ for Mac. For the details of "docker-connector", please see [docker-connector](https://github.com/wenjunxiao/mac-docker-connector) and [README](../dev/docker/tools/README.md).
+
+## Quick start
1. Clone the Gravitino project.
@@ -41,7 +42,7 @@ Note:
./gradlew build
```
- > Note: The first time you build the project, it may take a while to download the dependencies.
+ > Note: The first time you build the project, downloading the dependencies may take a while.
3. Deploy the Gravitino project in your local environment.
@@ -49,7 +50,7 @@ Note:
./gradlew compileDistribution
```
- The `compileDistribution` command will create a `distribution` directory in the Gravitino root directory.
+ The `compileDistribution` command creates a `distribution` directory in the Gravitino root directory.
The directory structure of the `distribution` directory is as follows:
@@ -69,16 +70,17 @@ Note:
└── data/ # Default directory for Gravitino Server to store data.
```
- > Note: The `./gradlew clean` command will delete the `distribution` directory.
+ > Note: The `./gradlew clean` command deletes the `distribution` directory.
4. Run Gravitino Server.
```shell
distribution/package/bin/gravitino.sh start
```
+
You can access the Gravitino WEB UI by typing http://localhost:8090 in your browser
- > Note: If you need to debug the Gravitino Server, you can enable the `GRAVITINO_DEBUG_OPTS` environment variable in the `conf/gravitino-env.sh` file.
+ > Note: If you need to debug the Gravitino Server, enable the `GRAVITINO_DEBUG_OPTS` environment variable in the `conf/gravitino-env.sh` file.
Then you can create a `Remote JVM Debug` configuration in `IntelliJ IDEA` and debug `gravitino.server.main`.
5. Stop Gravitino Server.
@@ -93,13 +95,13 @@ Note:
./gradlew assembleDistribution
```
- The `assembleDistribution` command will create `gravitino-{version}-bin.tar.gz` and `gravitino-{version}-bin.tar.gz.sha256` under the `distribution` directory.
+ The `assembleDistribution` command creates `gravitino-{version}-bin.tar.gz` and `gravitino-{version}-bin.tar.gz.sha256` under the `distribution` directory.
You can deploy them to your production environment.
> Note: The `gravitino-{version}-bin.tar.gz` file is the Gravitino Server distribution package, and the `gravitino-{version}-bin.tar.gz.sha256` file is the sha256 checksum file for the Gravitino Server distribution package.
-7. Assemble Gravitino trino connector package
+7. Assemble Gravitino Trino connector package
```shell
./gradlew assembleTrinoConnector
@@ -111,4 +113,4 @@ Note:
./gradlew assembleDistribution
```
- It will create `gravitino-trino-connector-{version}.tar.gz` and `gravitino-trino-connector-{version}.tar.gz.sha256` under the `distribution` directory.
+ This creates `gravitino-trino-connector-{version}.tar.gz` and `gravitino-trino-connector-{version}.tar.gz.sha256` under the `distribution` directory.
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index fb7e4c774d..a6ceb4fe6a 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -6,97 +6,105 @@ This software is licensed under the Apache License version 2."
---
## Background
-Gravitino Iceberg REST Server follows the [Iceberg REST API specification](https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml) and could act as an Iceberg REST catalog server.
-### Capabilities:
-* Support Iceberg REST API defined in Iceberg 1.3.1, support all namespace&table interface. `Token`, `ReportMetrics` and `Config` interfaces are not supported yet.
-* Worked as a catalog proxy, supports HiveCatalog and JdbcCatalog for now.
-* Build with Iceberg `1.3.1`, which means 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 when startup and
- does not yet support proxying to other HDFS users. See *How to access Hadoop* in the *How to customize Gravitino server configurations* document for more details.
+The Gravitino Iceberg REST Server follows the [Iceberg REST API specification](https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml) and acts as an Iceberg REST catalog server.
+
+### Capabilities
+
+* Supports the 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 Hadoop* in the *How to customize Gravitino server configurations* document for more details.
## How to start the Gravitino Iceberg REST server
-Suppose the Gravitino server is deployed on the `GRAVITINO_HOME` directory.
-All configurations are in [`$GRAVITINO_HOME/conf/gravitino.conf`](gravitino-server-config.md)
+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).
### Basic Gravitino Iceberg server configuration
| Configuration item | Description | Default value | Since Version |
|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|---------------|
-| `gravitino.auxService.names ` | The auxiliary service name of Gravitino Iceberg REST server, we should use **`iceberg-rest`** for Gravitino Iceberg REST server | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.classpath ` | The classpath of Gravitino Iceberg REST server, includes dirs with jar and configuration which support both absolute path and relative path, like `catalogs/lakehouse-iceberg/libs, catalogs/lakehouse-iceberg/conf` | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.host` | The host of Gravitino Iceberg REST server | `0.0.0.0` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.httpPort` | The port Gravitino Iceberg REST server, **the default port is same with port of Gravitino server, we should set a diffrent port explicitly, like `9001`** | `8090` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.minThreads` | The number of min threads in the thread pool which is used by Jetty webserver. `minThreads` will be adjusted to 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 number of max threads in the thread pool which is used by Jetty webserver. `maxThreads` will be adjusted to 8 if the value is less than 8, and `maxThreads` must be great or equal to `minThreads` | `Math.max(Runtime.getRuntime().availableProcessors() * 4, 400)` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.threadPoolWorkQueueSize` | The size of queue in thread pool which is used by Gravitino Iceberg REST server. | `100` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.stopTimeout` | Time of graceful stop for Gravitino Iceberg REST server, for more, please see `org.eclipse.jetty.server.Server#setStopTimeout`, unit: ms. | `30000` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.idleTimeout` | The timeout of idle connections, unit: ms. | `30000` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.requestHeaderSize` | Max size of Http request. | `131072` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.responseHeaderSize` | Max size of Http response. | `131072` | 0.2.0 |
+| `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 |
### Iceberg catalog configuration
-Gravitino Iceberg REST server uses memory catalog by default, it's not recommended in production, we could specify Hive catalog or Jdbc catalog.
+
+Not recommended for production environments the Gravitino Iceberg REST server defaults to using a memory catalog. You can instead specify a Hive or JDBC catalog.
#### Hive catalog configuration
| Configuration item | Description | Default value | Since Version |
|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|-----|
-| `gravitino.auxService.iceberg-rest.catalog-backend` | Catalog backend of Gravitino Iceberg REST server, use **`hive`** for Hive catalog | `memory` | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.uri` | Hive metadata address, like `thrift://127.0.0.1:9083` | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.warehouse ` | Warehouse directory of Hive catalog, like `/user/hive/warehouse-hive/` | null | 0.2.0 |
+| `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 |
-#### Jdbc catalog configuration
+#### JDBC catalog configuration
| Configuration item | Description | Default value | Since Version |
|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|-----|
-| `gravitino.auxService.iceberg-rest.catalog-backend` | Catalog backend of Gravitino Iceberg REST server, use **`jdbc`** for Jdbc catalog | `memory`| 0.2.0 |
-| `gravitino.auxService.iceberg-rest.uri` | The Jdbc connection address, like `jdbc:postgresql://127.0.0.1:5432` for postgres, `jdbc:mysql://127.0.0.1:3306/` for mysql | null | 0.2.0 |
-| `gravitino.auxService.iceberg-rest.warehouse ` | Warehouse directory of Jdbc catalog, you should set HDFS prefix explicitly if using HDFS, like `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 meta tables when create Jdbc catalog | `true` | 0.2.0 |
+| `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 |
-If using Jdbc catalog, you must **download responding Jdbc driver jars to Gravitino Iceberg REST server classpath**, such as `catalogs/lakehouse-iceberg/libs`.
+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`.
### Other Iceberg catalog properties
-We could 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` doesn't take effect.
-Take `clients` property for example:
+
+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.
+The `clients` property for example:
| Configuration item | Description | Default value |
|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|
-| `gravitino.auxService.iceberg-rest.clients` | Client pool size of catalog | `2` |
+| `gravitino.auxService.iceberg-rest.clients` | The client pool size of the catalog. | `2` |
### HDFS configuration
-HDFS config files(`core-site.xml` and `hdfs-site.xml`) could be put to dirs defined in `gravitino.auxService.iceberg-rest.classpath `, such as `catalogs/lakehouse-iceberg/conf`, it will be added to the classpath.
-## Start up Gravitino Iceberg REST server
-Start up Gravitino Iceberg REST server
-```
+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.
+
+## Starting the Gravitino Iceberg REST server
+
+Starting the Gravitino Iceberg REST server:
+
+```shell
./bin/gravitino.sh start
```
-Check whether Gravitino Iceberg REST server started
-```
+
+How to find out whether the Gravitino Iceberg REST server has started:
+
+```shell
curl http://127.0.0.1:9001/iceberg/application.wadl
```
-## Exploring Gravitino Iceberg REST server with Spark
+## Exploring the Gravitino Iceberg REST server with Spark
-### Deploy Spark with Iceberg support
+### Deploying Spark with Iceberg support
-Follow [Spark Iceberg start guide](https://iceberg.apache.org/docs/latest/getting-started/) to setup Spark&Iceberg 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 setup Spark's and Iceberg's environment. Please keep the Spark version consistent with the `spark-iceberg-runtime` version.
-
-### Start Spark client with Iceberg REST catalog
-| Configuration item | Description |
+### Starting the Spark client with the Iceberg REST catalog
+| Configuration item | Description |
|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
-| `spark.sql.catalog.${catalog-name}.type` | Spark catalog type, should set to `rest` |
-| `spark.sql.catalog.${catalog-name}.uri` | Spark Iceberg REST catalog uri, like `http://127.0.0.1:9001/iceberg/` |
+| `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:
-```
+
+```shell
./bin/spark-shell -v \
--conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \
--conf spark.sql.catalog.rest=org.apache.iceberg.spark.SparkCatalog \
@@ -104,15 +112,14 @@ For example:
--conf spark.sql.catalog.rest.uri=http://127.0.0.1:9001/iceberg/
```
-### Explore Iceberg with Spark SQL
+### Exploring Iceberg with Spark SQL
+
```sql
-//First change to `rest` catalog, `rest` is the catalog name
+// First change to use the `rest` catalog
USE rest;
CREATE DATABASE IF NOT EXISTS dml;
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
-```
-
-If you have any problem or requirement, please create an issue :)
+```
\ No newline at end of file
diff --git a/docs/integration-test.md b/docs/integration-test.md
index 848b485d9d..3832e6f257 100644
--- a/docs/integration-test.md
+++ b/docs/integration-test.md
@@ -4,44 +4,46 @@ date: 2023-10-02T09:03:20-08:00
license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-## How to Run Integration Tests
+## How to run integration tests
## Introduction
The `integration-test` module contains integration test cases to ensure the correctness of the
-Gravitino server, API, and client. These tests can be run locally or on GitHub Actions.
+Gravitino server, API, and client. You can run these tests locally or on GitHub Actions.
-## Test Modes
+## Test modes
-### MiniGravitino Embedded Mode
+### Running MiniGravitino in embedded mode
The `MiniGravitino` is a lightweight Gravitino server embedded in the integration test module.
-1. Execute the `./gradlew build -x test` command to build the Gravitino project.
-2. Use the `./gradlew test [--rerun-tasks]` or `./gradlew test [--rerun-tasks] -PtestMode=embedded` command to run the integration tests.
-> Execute the `./gradlew build` command to build the Gravitino project and automatically run the integration tests in the embedded mode.
+1. Run the `./gradlew build -x test` command to build the Gravitino project.
-It provides full Gravitino server functionality and supports the following abilities:
+2. Use the `./gradlew test [--rerun-tasks]` or `./gradlew test [--rerun-tasks] -PtestMode=embedded` commands to run the integration tests.
-- Running a Gravitino server in a single thread
-- Starting a Jetty server to provide the Gravitino server API, using a random port to avoid port conflicts
-- Using a random storage path to store backend data, which is deleted when MiniGravitino is stopped
+> Run the `./gradlew build` command to build the Gravitino project and run the integration tests in embedded mode.
-### Deploying Gravitino Server Locally
+The Gravitino server supports the following abilities:
-The Gravitino server can be deployed locally to run the integration tests. Follow these steps:
+- Running a Gravitino server in a single thread.
+- Starting a Jetty server to provide the Gravitino server API, using a random port to avoid port conflicts.
+- Using a random storage path to store backend data. Stopping MiniGravitino deletes the backend data.
-1. Execute the `./gradlew build -x test` command to build the Gravitino project.
+### Deploying the Gravitino server locally
+
+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 in the `distribution` directory.
3. Use the `./gradlew test [--rerun-tasks] -PtestMode=deploy` command to run the integration tests in the `distribution` directory.
-### Skipping Tests
+### Skipping 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` 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
+## Docker test environment
Some integration test cases depend on the Gravitino CI Docker environment.
@@ -61,8 +63,9 @@ public class CatalogHiveIT extends AbstractIT {
```
### Running all integration tests
-If you're running `Docker server` and `mac-docker-connector` (only macOS need to run `mac-docker-connector`), the `./gradlew test -PtestMode=[embedded|deploy]`
-command will automatically execute all the test cases.
+
+If you're running `Docker server` and `mac-docker-connector` (only macOS needs to run `mac-docker-connector`), the `./gradlew test -PtestMode=[embedded|deploy]`
+command runs all the test cases.
```text
------------------- Check Docker environment --------------------
@@ -73,8 +76,8 @@ Using Gravitino IT Docker container to run all integration tests. [embedded test
```
### Docker server or mac-docker-connector not running
-If `Docker server` or `mac-docker-connector` is not running (only required to run in macOS), the `./gradlew test -PtestMode=[embedded|deploy]`
-command will run test cases without `gravitino-docker-it` tag.
+
+Running the ./gradlew test -PtestMode=[embedded|deploy] command runs all test cases without the `gravitino-docker-it` tag, when the `Docker server` or `mac-docker-connector` (only required in MacOS) isn't running.
```text
------------------- Check Docker environment ------------------
@@ -82,53 +85,49 @@ Docker server status ............................................ [stop]
mac-docker-connector server status .............................. [stop]
Run test cases without `gravitino-docker-it` tag ................ [embedded test]
---------------------------------------------------------------
-Tip: Please make sure to start the `Docker server before` running the integration tests.
-Tip: Please make sure to execute the `dev/docker/tools/mac-docker-connector.sh` script before running the integration test in MacOS.
+Tip: Please make sure to start the `Docker server` before running the integration tests.
+Tip: Please make sure to run the `dev/docker/tools/mac-docker-connector.sh` script before running the integration tests in MacOS.
```
-## Debugging Gravitino Server and Integration Tests
+## Debugging Gravitino server and integration tests
-By default, the integration tests are run using MiniGravitino.
-Debugging with MiniGravitino is simple and easy. You can modify any code in the Gravitino project and set breakpoints anywhere.
+By default, using MiniGravitino runs the integration tests. Debugging with MiniGravitino is simple and easy. You can modify any code in the Gravitino project and set breakpoints anywhere.
-### How to Debug deploy mode Gravitino Server and Integration Tests
+### How to debug deploy mode Gravitino server and integration tests
-You have two modes to debug the Gravitino server and integration tests: `embedded` and `deploy` mode.
+You have two modes to debug the Gravitino server and integration tests; the `embedded` and `deploy` modes.
-1. Embedded Mode (default):
- - This mode is simpler to debug but not as close to the actual environment
- - Debugging with `MiniGravitino` is simple and easy. You don't have to do any setup to debug directly
+1. Embedded Mode is the default:
+ - This mode is simpler to debug but not as close to the actual environment.
+ - Debugging with `MiniGravitino` is simple and easy. You don't have to do any setup to debug directly.
2. Deploy Mode:
- - This mode is closer to the actual environment but more complex to debug
+ - This mode is closer to the actual environment but more complex to debug.
- To debug the Gravitino server code, follow these steps:
- - Execute 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
+ - 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 will automatically run integration tests in the embedded and deploy mode when you submit a pull request to the 'main' branch.
-- Test results can be viewed in the `Actions` tab of the pull request page.
-- The integration tests are executed in several steps:
-
- - Gravitino integration tests will pull the CI Docker image from the Docker Hub repository. This step usually takes around 15 seconds.
- - If you set the `debug action` label in the pull request, GitHub Actions will run an SSH server with
- `csexton/debugger-action@master`, allows you to log in to the Actions environment for remote debugging.
- - The Gravitino project is compiled and packaged in the `distribution` directory using the `./gradlew compileDistribution` command.
- - Execution the `./gradlew test -PtestMode=[embedded|deploy]` command.
-
-## Test Failure
-If a test fails, valuable information can be retrieved from the logs and test report. Test reports
-are stored in the `./build/reports` directory. The integration test logs are situated in the
-`./integrate-test/build` directory. In deploy mode, Gravitino server logs can be found at
-`./distribution/package/logs/` directory. In the event of a test failure within the GitHub workflow,
-both logs and the test report are archived. To obtain the archive, please follow these steps:
-1. Click the `detail` link associated with the failed integrate test in the pull request (PR). This will redirect you to the job page.
+ - 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 submit a pull request to the 'main' branch.
+- 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 failure
+
+If a test fails, you can retrieve valuable information from the logs and test report. 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 integrate test in the pull request (PR). This redirects you to the job page.
![pr page Image](assets/test-fail-pr.png)