Skip to content

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

[Minor] Update documents in-line with doc standards (#926)

Justin Mcleanf14684ac923e
diff --git a/docs/README.md b/docs/README.md
index bff7632221..38a29a9536 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -4,7 +4,7 @@ date: 2023-10-03T09:03:20-08:00
license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-## Gravitino Documentation
+## Gravitino documentation
## Launch Gravitino document website
@@ -26,8 +26,9 @@ Execute `./launch-docs-website.sh` scripts. The script will create the Gravitino
To add a new document to the Gravitino website, follow these steps:
1. Create a new markdown file in the `docs` directory.
-2. For the markdown file, include the following header at the beginning as `Hugo` will use it to create the website link list.
- ```
+2. For the markdown file, include the following header at the beginning as `Hugo` uses it to create the website links list.
+
+ ```text
---
title: "Article Title"
date: Writing date
@@ -35,6 +36,7 @@ To add a new document to the Gravitino website, follow these steps:
This software is licensed under the Apache License version 2."
---
```
-3. To insert an image into a markdown file, you must save all the referenced images in the `docs/assets` directory.
+
+3. To insert an image into a markdown file, you must save all the referenced images in the `docs/assets` directory.
Additionally, you must use the following format: `![](assets/...`
4. Execute `./launch-docs-website.sh update` scripts to update the Gravitino document website.
diff --git a/docs/gravitino-manage-hive.md b/docs/gravitino-manage-hive.md
index 4adee7746b..c4e3cc67b0 100644
--- a/docs/gravitino-manage-hive.md
+++ b/docs/gravitino-manage-hive.md
@@ -4,19 +4,18 @@ date: 2023-10-20
license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-## Using Apache Hive as a Catalog in Gravitino
+## Using Apache Hive as a catalog in Gravitino
-Gravitino offers the functionality to utilize Apache Hive as a catalog for metadata management. This guide will lead you through the process of creating a catalog using Hive in Gravitino.
+Gravitino offers the capability to utilize Apache Hive as a catalog for metadata management. This guide leads you through the process of creating a catalog using Hive in Gravitino.
-### Requirements:
+### Requirements
* The Hive catalog requires a Hive Metastore Service (HMS), or a compatible implementation of the HMS, such as AWS Glue.
* The Gravitino must have network access to the Hive metastore service with the Thrift protocol.
-* Apache Hive 2.x is supported.
+* Support is available for Apache Hive 2.x.
* Before you create a Hive catalog, make sure you have already created a Metalake. If you haven't done so, please follow the Metalake creation steps.
-## Creating a Apache Hive Catalog
-
+## Creating an Apache Hive Catalog
To create a Hive catalog, use the following steps:
Submit a catalog JSON example to the Gravitino server using the URL format:
@@ -39,23 +38,23 @@ Example JSON:
}
```
-* `name`: The name of the Hive catalog to be created.
+* `name`: The name of the created Hive catalog.
* `comment`: Optional, user custom catalog comment.
-* `provider`: Must set this to "hive" in order to use Hive as the catalog provider.
+* `provider`: Must set this to "hive" to use Hive as the catalog provider.
* `type`: Must set this to "RELATIONAL" because Hive has a relational data structure, like `db.table`.
-* `properties`: The properties of the Hive catalog. More properties information see the following catalog properties table.
+* `properties`: The properties of the Hive catalog. For more property information see the following catalog properties table.
-### catalog properties
+### Catalog properties
| Property name | Description | example value | Since version |
|---------------------|------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|---------------|
| `metastore.uris` | This is a required configuration, and it should be the Hive metastore service URIs, separate multiple addresses with commas. | `thrift://127.0.0.1:9083` | 0.2.0 |
| `client.pool-size` | The maximum number of Hive metastore clients in the pool for Gravitino. 1 by default value. | 1 | 0.2.0 |
-| `gravitino.bypass.` | Property name with this prefix will be passed down to the underlying HMS client for use. Empty by default value. | `gravitino.bypass.hive.metastore.failure.retries = 3` indicate 3 times of retries upon failure of Thrift metastore calls | 0.2.0 |
+| `gravitino.bypass.` | Property name with this prefix passed down to the underlying HMS client for use. Empty by default value. | `gravitino.bypass.hive.metastore.failure.retries = 3` indicate 3 times of retries upon failure of Thrift metastore calls | 0.2.0 |
-## Creating an Apache Hive Schema
+## Creating an Apache Hive schema
-After the catalog is created, you can submit a schema JSON example to the Gravitino server using the URL format:
+After creating the catalog, you can submit a schema JSON example to the Gravitino server using the URL format:
```shell
http://{GravitinoServerHost}:{GravitinoServerPort}/api/metalakes/{metalake}/catalogs/{catalog}/schemas
@@ -73,19 +72,19 @@ Example JSON:
}
```
-* `name`: The name of the Hive database to be created.
+* `name`: The name of the created Hive database.
* `comment`: Optional, user custom Hive database comment.
-* `properties`: The properties of the Hive database. More properties information see the following schema properties table. Other properties will be passed down to the underlying Hive database parameters.
+* `properties`: The properties of the Hive database. For more property information see the following schema properties table. You can pass down other properties to the underlying Hive database parameters.
-### schema properties
+### Schema properties
| Property name | Description | example value | Since version |
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------|---------------|
-| `location` | The directory for Hive database storage. Not required, HMS will use the value of `hive.metastore.warehouse.dir` in the Hive conf file hive-site.xml by default. | `/user/hive/warehouse` | 0.1.0 |
+| `location` | Hive uses the value hive.metastore.warehouse.dir in the Hive configuration file hive-site.xml by default for the directory of Hive database storage. | `/user/hive/warehouse` | 0.1.0 |
## Creating an Apache Hive Table
-After the schema is created, you can submit a table JSON example to the Gravitino server using the URL format:
+After creating the schema, you can submit a table JSON example to the Gravitino server using the URL format:
```shell
http://{GravitinoServerHost}:{GravitinoServerPort}/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/tables
@@ -155,23 +154,22 @@ Example JSON:
}
```
-* `name`: The name of the Hive table to be created.
+* `name`: The name of the created Hive table.
* `comment`: Optional, user custom Hive table comment.
* `columns`: The columns of the Hive table.
-* `partitions`: Optional, the partitions of the Hive table, above example is a partitioned table with `dt` column.
-* `distribution`: Optional, equivalent to the `CLUSTERED BY` clause in Hive DDL, above example table is bucketed(cluster by) `id` column.
-* `sortOrders`: Optional, equivalent to the `SORTED BY` clause in Hive DDL, above example table data is sorted in increasing order of `age` in each bucket.
-* `properties`: The properties of the Hive table. More properties information see the following table properties table. Other properties will be passed down to the underlying Hive table parameters.
+* `partitions`: Optional, the partitions of the Hive table, the previous example is a partitioned table with `dt` column.
+* `distribution`: Optional, equivalent to the `CLUSTERED BY` clause in Hive DDL, the previous example table bucketed or cluster on the `id` column.
+* `sortOrders`: Optional, equivalent to the `SORTED BY` clause in Hive DDL, the previous example table shows shorted data in increasing order of `age` in each bucket.
+* `properties`: The properties of the Hive table. For more property information see the following table properties table. You can pass down other properties to the underlying Hive table parameters.
-### table properties
+### Table properties
| Configuration item | Description | example value | Since version |
|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|---------------|
-| `location` | The location for table storage. Not required, HMS will use the database location as parent directory by default. | `/user/hive/warehouse/test_table` | 0.2.0 |
+| `location` | The location for table storage. Not required, HMS will use the database location as the parent directory by default. | `/user/hive/warehouse/test_table` | 0.2.0 |
| `table-type` | Type of the table. Valid values include `MANAGED_TABLE` and `EXTERNAL_TABLE`. `MANAGED_TABLE` by default value. | `MANAGED_TABLE` | 0.2.0 |
| `format` | The table file format. Valid values include `TEXTFILE`, `SEQUENCEFILE`, `RCFILE`, `ORC`, `PARQUET`, `AVRO`, `JSON`, `CSV`, and `REGEX`. `TEXTFILE` by default value. | `ORC` | 0.2.0 |
| `input-format` | The input format class for the table. The property `format` sets the default value `org.apache.hadoop.mapred.TextInputFormat` and can change it to a different default. | `org.apache.hadoop.hive.ql.io.orc.OrcInputFormat` | 0.2.0 |
| `output-format` | The output format class for the table. The property `format` sets the default value `org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat` and can change it to a different default. | `org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat` | 0.2.0 |
| `serde-lib` | The serde library class for the table. The property `format` sets the default value `org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe` and can change it to a different default. | `org.apache.hadoop.hive.ql.io.orc.OrcSerde` | 0.2.0 |
-| `serde.parameter.` | The prefix of serde parameter, empty by default. | `"serde.parameter.orc.create.index" = "true"` indicate `ORC` serde lib to create row indexes | 0.2.0 |
-
+| `serde.parameter.` | The prefix of the serde parameter, empty by default. | `"serde.parameter.orc.create.index" = "true"` indicate `ORC` serde lib to create row indexes | 0.2.0 |
diff --git a/docs/gravitino-server-config.md b/docs/gravitino-server-config.md
index 32e4d8cfb1..b05b16c1dc 100644
--- a/docs/gravitino-server-config.md
+++ b/docs/gravitino-server-config.md
@@ -7,8 +7,8 @@ This software is licensed under the Apache License version 2."
## How to configure Gravitino server configurations
-Gravitino server can be customized by editing the configuration file `gravitino.conf` in the `conf` directory. The default values are sufficient for most use cases and don't need modification.
-But we strongly recommend reading the following sections to understand the configuration file and change the default values to suit your specific situation and usage scenario.
+You can customize the Gravitino server by editing the configuration file `gravitino.conf` in the `conf` directory. The default values are sufficient for most use cases and don't need modification.
+It's strongly recommended to read the following sections to understand the configuration file and change the default values to suit your specific situation and usage scenario.
## Configuration file
@@ -16,7 +16,7 @@ The file located in `conf/gravitino.conf` is the main configuration file for the
## Configuration items
-The following table lists the configuration items in the `gravitino.conf` file. Those items are grouped into the following categories:
+The `gravitino.conf` file lists the configuration items in the following table. It groups those items into the following categories:
### Server configuration
@@ -24,40 +24,41 @@ The following table lists the configuration items in the `gravitino.conf` file.
|------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|
| `gravitino.server.webserver.host` | The host of Gravitino server. | `0.0.0.0` | 0.1.0 |
| `gravitino.server.webserver.httpPort` | The port on which the Gravitino server listens for incoming connections. | `8090` | 0.1.0 |
-| `gravitino.server.webserver.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.server.webserver.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.1.0 |
-| `gravitino.server.webserver.threadPoolWorkQueueSize` | The size of queue in the thread pool which is used by Jetty webserver. | `100` | 0.1.0 |
-| `gravitino.server.webserver.stopTimeout` | Time of graceful shutdown of the Jetty webserver, for more, please see `org.eclipse.jetty.server.Server#setStopTimeout`, unit: ms. | `30000` | 0.2.0 |
-| `gravitino.server.webserver.idleTimeout` | The timeout of idle connections, unit: ms. | `30000` | 0.2.0 |
-| `gravitino.server.webserver.requestHeaderSize` | Max size of HTTP request. | `131072` | 0.1.0 |
-| `gravitino.server.webserver.responseHeaderSize` | Max size of HTTP response. | `131072` | 0.1.0 |
-| `gravitino.server.shutdown.timeout` | Time of graceful shutdown of the Gravitino webserver. Unit: ms. | `3000` | 0.2.0 |
+| `gravitino.server.webserver.minThreads` | The minimum number of threads in the thread pool 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.server.webserver.maxThreads` | The maximum number of threads in the thread pool 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.1.0 |
+| `gravitino.server.webserver.threadPoolWorkQueueSize` | The size of the queue in the thread pool used by Jetty webserver. | `100` | 0.1.0 |
+| `gravitino.server.webserver.stopTimeout` | Time in milliseconds to gracefully shutdown the Jetty webserver, for more, please see `org.eclipse.jetty.server.Server#setStopTimeout`. | `30000` | 0.2.0 |
+| `gravitino.server.webserver.idleTimeout` | The timeout in milliseconds of idle connections. ms. | `30000` | 0.2.0 |
+| `gravitino.server.webserver.requestHeaderSize` | Maximum size of HTTP requests. | `131072` | 0.1.0 |
+| `gravitino.server.webserver.responseHeaderSize` | Maximum size of HTTP responses. | `131072` | 0.1.0 |
+| `gravitino.server.shutdown.timeout` | Time in milliseconds to gracefully shutdown of the Gravitino webserver. | `3000` | 0.2.0 |
### Storage configuration
| Configuration item | Description | Default value | Since version |
|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|---------------|
-| `gravitino.entity.store` | Which storage implementation to use, currently we only support key-value pair storage, default value is `kv`. | `kv` | 0.1.0 |
-| `gravitino.entity.store.kv` | Detailed implementation of kv storage, currently we only support `RocksDB` storage implementation `RocksDBKvBackend`. | `RocksDBKvBackend` | 0.1.0 |
-| `gravitino.entity.store.kv.rocksdbPath` | Directory path of `RocksDBKvBackend`, **we highly recommend you to change this default value** as it's under the deploy directory and version update operations may remove it. | `${GRAVITINO_HOME}/data/rocksdb` | 0.1.0 |
-| `gravitino.entity.store.maxTransactionSkewTimeMs` | The max skew time of transaction, unit: millisecond. | `2000` | 0.3.0 |
-| `gravitino.entity.store.kv.deleteAfterTimeMs` | The max time that the deleted data and old version data will keep, unit: millisecond. At least 10 minutes and should not larger than 30 days | `604800000`(7 days) | 0.3.0 |
+| `gravitino.entity.store` | Which storage implementation to use, currently supported is key-value pair storage, the default value is `kv`. | `kv` | 0.1.0 |
+| `gravitino.entity.store.kv` | Detailed implementation of Kv storage, currently supported is `RocksDB` storage implementation `RocksDBKvBackend`. | `RocksDBKvBackend` | 0.1.0 |
+| `gravitino.entity.store.kv.rocksdbPath` | Directory path of `RocksDBKvBackend`, **It's highly recommend that you change this default value** as it's under the deploy directory and future version upgrades may remove it. | `${GRAVITINO_HOME}/data/rocksdb` | 0.1.0 |
+| `gravitino.entity.store.maxTransactionSkewTimeMs` | The maximum skew time of transactions in milliseconds. | `2000` | 0.3.0 |
+| `gravitino.entity.store.kv.deleteAfterTimeMs` | The maximum time in milliseconds that the deleted data and old version data is kept. Set to at least 10 minutes and no longer than 30 days. | `604800000`(7 days) | 0.3.0 |
### Catalog configuration
| Configuration item | Description | Default value | Since version |
|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|
| `gravitino.catalog.cache.evictionIntervalMs` | The interval in milliseconds to evict the catalog cache, default 3600000ms(1h) | `3600000` | 0.1.0 |
-| `gravitino.catalog.classloader.isolated` | Whether to use an isolated classloader for catalog, if it's true, all catalog-related libraries and configurations will be loaded by an isolated classloader NOT by AppClassLoader. Default value is `true` | `true` | 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` | 0.1.0 |
## How to set up runtime environment variables
-Gravitino server also supports setting up runtime environment variables by editing the `gravitino-env.sh` file, which is located in the `conf` directory.
+Gravitino server also supports setting up runtime environment variables by editing the `gravitino-env.sh` file, located in the `conf` directory.
### How to access Apache Hadoop
Currently, due to the absence of a comprehensive user permission system, Gravitino can only use a single username for
Apache Hadoop access. Please ensure that the user starting the Gravitino server has Hadoop (HDFS, YARN, etc.) access
permissions; otherwise, you may encounter a `Permission denied` error. There are also several ways to resolve this error:
+
* Granting the Gravitino startup user permissions in Hadoop
* Specify the authorized Hadoop username in the environment variables `HADOOP_USER_NAME` before starting the Gravitino server.
diff --git a/docs/gravitino-use-iceberg.md b/docs/gravitino-use-iceberg.md
index 414ce483fc..cf73a205be 100644
--- a/docs/gravitino-use-iceberg.md
+++ b/docs/gravitino-use-iceberg.md
@@ -7,15 +7,15 @@ This software is licensed under the Apache License version 2."
## Using Apache Iceberg as a Catalog in Gravitino
-Gravitino provides the ability to use Apache Iceberg as a catalog for managing your data. This guide will walk you through the steps to create a catalog using Iceberg within Gravitino.
+Gravitino provides the ability to use Apache Iceberg as a catalog for managing your data. This guide walks you through the steps to create a catalog using Iceberg within Gravitino.
### Capabilities
* Worked as a catalog proxy, supports HiveCatalog and JdbcCatalog for now
* The integrated Iceberg version used is 1.3.1.
-* Before creating a catalogue, ensure you have already created a Metalake. If you still need to, please follow the Metalake creation steps.
+* Before creating a catalog, ensure you have already created a Metalake. If you still need to, please follow the Metalake creation steps.
-## Creating an Apache Iceberg Catalog
+## Creating an Apache Iceberg catalog
To create an Iceberg catalog, use the following steps:
@@ -45,13 +45,13 @@ http://{GravitinoServerHost}:8090/api/metalakes/{Your_metalake_name}/catalogs
* `provider`: Set this to "lakehouse-iceberg" to use Iceberg as the catalog provider.
* `catalog-backend`: This configuration represents the catalog mode used by Iceberg. You can choose from "hive" and "jdbc".
-* `uri`: This configuration is required, and it can be either a Hive URI or a JDBC URI.
-* `warehouse`: This configuration is required, and can point to a file system such as HDFS.
-* Other configuration parameters can be added to the "properties" section and passed down to the underlying system.
+* `uri`: Required configuration, either a Hive URI or a JDBC URI.
+* `warehouse`: Required configuration, and can point to a file system such as HDFS.
+* You can add other configuration parameters to the "properties" section and they're passed down to the underlying system.
* If you are using the JDBC catalog implementation, include "jdbc-user" and "jdbc-password" as required configurations.
* If you intend to use the JDBC connector, add the corresponding JDBC driver to the `catalogs/lakehouse-iceberg/libs` directory in the classpath.
-### catalog configuration
+### Catalog configuration
| Configuration item | Description | value |
|--------------------|--------------------------------------------------|--------------------------------------------------------------------------------------------------------|
@@ -61,9 +61,9 @@ http://{GravitinoServerHost}:8090/api/metalakes/{Your_metalake_name}/catalogs
### HDFS configuration
-You can place (`core-site.xml` and `hdfs-site.xml`) in the `catalogs/lakehouse-iceberg/conf` directory, and it will be automatically loaded as the default HDFS configuration. Of course, you can also pass the respective key-value pairs in the JSON parameters under 'properties' for personalized configuration.
+You can place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-iceberg/conf` directory, and it will be automatically loaded as the default HDFS configuration. Of course, you can also pass the respective key-value pairs in the JSON parameters under 'properties' for personalized configuration.
-## After the catalog is initialized
+## After catalog initialization
You can manage and operate on tables using the following URL format:
@@ -125,27 +125,28 @@ Example JSON:
}
```
-* `name`: The name of the Iceberg table to be created.
+* `name`: The created name of the Iceberg table.
* `comment`: Optional, user custom Iceberg table comment.
* `columns`: The columns of the Iceberg table.
-* `partitions`: Optional, the partitions of the Iceberg table, above example is a partitioned table with `dt` column.
-* `sortOrders`: Optional, equivalent to the `SORTED BY` clause in Iceberg DDL, above example table data is sorted in increasing order of `age` in each bucket.
-* `properties`: The properties of the Iceberg table. For more property information see the following properties table. Other properties will be passed down to the underlying Iceberg table parameters.
+* `partitions`: Optional, the partitions of the Iceberg table, the previous example is a partitioned table with `dt` column.
+* `sortOrders`: Optional, equivalent to the `SORTED BY` clause in Iceberg DDL, the previous example table sorted data in increasing order of `age` in each bucket.
+* `properties`: The properties of the Iceberg table. For more property information see the following properties table. The underlying Iceberg table parameters receive any other properties passed down.
Iceberg lacks distribution support. For buckets, consider using partitions instead.
-### table properties
-Gravitino reserves the following fields and they cannot be passed in properties.
+### Table properties
+
+Gravitino reserves the following fields, and you can't pass them in properties.
| Configuration item | Description |
|---------------------------|-----------------------------------------------------------|
| `comment` | The table comment. |
| `creator` | The table creator. |
| `location` | Iceberg location for table storage. |
-| `current-snapshot-id` | The snapshot representing the current state of the table. |
-| `cherry-pick-snapshot-id` | Selecting a specific snapshots in a merge operation. |
-| `sort-order` | Selecting a specific snapshots in a merge operation. |
-| `identifier-fields` | The identifier field(s) for defining the table. |
+| `current-snapshot-id` | The snapshot represents the current state of the table. |
+| `cherry-pick-snapshot-id` | Selecting a specific snapshot in a merge operation. |
+| `sort-order` | Selecting a specific snapshot in a merge operation. |
+| `identifier-fields` | The identifier fields for defining the table. |
Regarding Iceberg's properties, you can refer to [official documentation](https://iceberg.apache.org/docs/1.3.1/configuration/).
diff --git a/docs/how-to-build.md b/docs/how-to-build.md
index 9314bc97c5..3294f82be4 100644
--- a/docs/how-to-build.md
+++ b/docs/how-to-build.md
@@ -84,7 +84,7 @@ Note:
distribution/package/bin/gravitino.sh start
```
- You can access the Gravitino WEB UI by typing http://localhost:8090 in your browser
+ You can access the Gravitino Web UI by typing http://localhost:8090 in your browser
> Note:
>
diff --git a/docs/how-to-sign-releases.md b/docs/how-to-sign-releases.md
index 5b98629909..4c4d60adad 100644
--- a/docs/how-to-sign-releases.md
+++ b/docs/how-to-sign-releases.md
@@ -14,9 +14,9 @@ Before signing or verifying a Gravitino release, ensure you have the following p
- GPG/GnuPG
- Release artifacts
-## Platform Support
+## Platform support
-These instructions are tailored for OSX, adjustments may be required for other platforms.
+ These instructions are for OSX, you may need to make adjustments for other platforms.
1. **How to Install GPG or GnuPG:**
@@ -28,13 +28,13 @@ These instructions are tailored for OSX, adjustments may be required for other p
gpg -help
```
- If GPG/GnuPG is not installed, run the following command to install it. This step only needs to be done once.
+ If GPG/GnuPG isn't installed, run the following command to install it. You only need to do this step once.
```shell
brew install gpg
```
-## Signing a Release
+## Signing a release
1. **Create a Public/Private Key Pair:**
@@ -46,13 +46,13 @@ These instructions are tailored for OSX, adjustments may be required for other p
If you get no output, you'll need to generate a public/private key pair.
- Use this command to generate a public/private key pair. This is a one-time process. It is recommended to set the key expiry to 5 years and omit a comment; all other defaults are acceptable.
+ Use this command to generate a public/private key pair. This is a one-time process. Setting the key expiry to 5 years and omitting a comment. All other defaults are acceptable.
```shell
gpg --full-generate-key
```
- This is an example of generating a public/private key pair by using the above command.
+ This is an example of generating a public/private key pair by using the previous command.
```shell
gpg (GnuPG) 2.4.3; Copyright (C) 2023 g10 Code GmbH
@@ -109,9 +109,9 @@ These instructions are tailored for OSX, adjustments may be required for other p
sub cv25519 2023-11-15 [E] [expires: 2028-11-13]
```
- **IMPORTANT!!!** Ensure to keep your private key secure and saved somewhere other than just your computer. Do not forget your key password, and also securely record it somewhere. If you lose your keys or forget your password you will not be able to sign releases.
+ **IMPORTANT!!!** Ensure to keep your private key secure and saved somewhere other than just your computer. Don't forget your key password, and also securely record it somewhere. If you lose your keys or forget your password you won't be able to sign releases.
-2. **Sign a Release:**
+2. **Sign a release:**
To sign a release, use the following command for each release file:
@@ -125,9 +125,9 @@ These instructions are tailored for OSX, adjustments may be required for other p
gpg --detach-sign --armor gravitino.0.2.0.zip
```
- This will generate a .asc file containing a PGP signature. Anyone can use this file and your public signature to verify the release.
+ To generate a .asc file containing a PGP signature. Anyone can use this file and your public signature to verify the release.
-3. **Generate Hashes for a Release:**
+3. **Generate hashes for a release:**
Use the following command to generate hashes for a release:
@@ -141,22 +141,22 @@ These instructions are tailored for OSX, adjustments may be required for other p
shasum -a 256 gravitino.0.2.0.zip > gravitino.0.2.0.zip.sha256
```
-4. **Copy your Public Key to the KEYS File:**
+4. **Copy your public key to the KEYS file:**
- The KEYS file contains public keys used to sign previous releases. This step is required only once. Execute the following command to copy your public key to a KEY file and then append your KEY to the KEYS file. The KEYS file contains all the public keys used to sign previous releases.
+ The KEYS file contains public keys used to sign previous releases. You only need to do this step once. Execute the following command to copy your public key to a KEY file and then append your KEY to the KEYS file. The KEYS file contains all the public keys used to sign previous releases.
```shell
gpg --output KEY --armor --export <youremail>
cat KEY >> KEYS
```
-5. **Publish Hashes and Signatures:**
+5. **Publish hashes and signatures:**
- Upload the generated .asc and .sha256 files along with the release artifacts and KEYS file to the release area. This will be covered in another document.
+ Upload the generated .asc and .sha256 files along with the release artifacts and KEYS file to the release area.
-## Verifying a Release
+## Verifying a release
-1. **Import Public Keys:**
+1. **Import public keys:**
Download the KEYS file. Import the public keys used to sign all previous releases with this command. It doesn't matter if you have already imported the keys previously.
@@ -164,7 +164,7 @@ These instructions are tailored for OSX, adjustments may be required for other p
gpg --import KEYS
```
-2. **Verify the Signature:**
+2. **Verify the signature:**
Download the .asc and release files. Use the following command to verify the signature:
@@ -180,7 +180,7 @@ These instructions are tailored for OSX, adjustments may be required for other p
gpg --verify gravitino.0.2.0.zip.asc
```
-3. **Verify the Hashes:**
+3. **Verify the hashes:**
Check if the hashes match using the following command:
diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.md
index 9499014eac..8eca622e99 100644
--- a/docs/iceberg-rest-service.md
+++ b/docs/iceberg-rest-service.md
@@ -71,7 +71,6 @@ The `clients` property for example:
|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------|---------------|
| `gravitino.auxService.iceberg-rest.clients` | The client pool size of the catalog. | `2` |
-
### HDFS configuration
The Gravitino Iceberg REST server adds the HDFS configuration files, `core-site.xml` and `hdfs-site.xml` from the directory defined by `gravitino.auxService.iceberg-rest.classpath`, for example, `catalogs/lakehouse-iceberg/conf`, to the classpath.
@@ -97,6 +96,7 @@ curl http://127.0.0.1:9001/iceberg/application.wadl
Follow the [Spark Iceberg start guide](https://iceberg.apache.org/docs/latest/getting-started/) to setup Apache Spark's and Apache Iceberg's environment. Please keep the Spark version consistent with the `spark-iceberg-runtime` version.
### 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`. |
@@ -122,4 +122,4 @@ CREATE TABLE dml.test (id bigint COMMENT 'unique id') using iceberg
DESCRIBE TABLE EXTENDED dml.test;
INSERT INTO dml.test VALUES (1), (2);
SELECT * FROM dml.test
-```
\ No newline at end of file
+```
diff --git a/docs/integration-test.md b/docs/integration-test.md
index 3832e6f257..6b498b91cf 100644
--- a/docs/integration-test.md
+++ b/docs/integration-test.md
@@ -127,7 +127,7 @@ You have two modes to debug the Gravitino server and integration tests; the `emb
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.
+1. Click the `detail` link associated with the failed integrate test in the pull request. This redirects you to the job page.
![pr page Image](assets/test-fail-pr.png)
diff --git a/docs/overview.md b/docs/overview.md
index ced1155198..2fce91108d 100644
--- a/docs/overview.md
+++ b/docs/overview.md
@@ -37,7 +37,7 @@ The model of Gravitino
![Gravitino Model](assets/metadata-model.png)
* **Metalake**: The top-level container for metadata. Typically, one group has one metalake to manage all the metadata in it. Each metalake exposes a three-level namespace(catalog.schema.table) to organize the data.
-* **Catalog**: catalog is a collection of metadata from a specific metadata source. Each catalog will have a related connector to connect to the specific metadata source.
+* **Catalog**: catalog is a collection of metadata from a specific metadata source. Each catalog has a related connector to connect to the specific metadata source.
* **Schema**: Schema is equivalent to a database, Schemas only exist in the specific catalogs that support relational metadata sources, such as Apache Hive, MySQL, PostgreSQL, and others.
-* **Table**: The lowest level in the object hierarchy for catalogs that support relational metadata sources. Tables can be created in the specific schemas in the catalogs.
+* **Table**: The lowest level in the object hierarchy for catalogs that support relational metadata sources. You can create Tables in specific schemas in the catalogs.
* **Model**: Model represents the metadata in the specific catalogs that support model management.
diff --git a/docs/publish-docker-images.md b/docs/publish-docker-images.md
index 3ca07597b3..9ea7c55a44 100644
--- a/docs/publish-docker-images.md
+++ b/docs/publish-docker-images.md
@@ -5,32 +5,32 @@ license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-## How to Publish Docker Images
+## How to publish Docker images
## Introduction
-The Gravitino project provides a set of docker images to facilitate the publishing, development and testing of the Gravitino project.
-The Gravitino official docker images are published to the [datastrato](https://hub.docker.com/u/datastrato) DockerHub repository.
+The Gravitino project provides a set of Docker images to facilitate the publishing, development, and testing of the Gravitino project.
+[Datastrato Docker Hub](https://hub.docker.com/u/datastrato) repository publishes the official Gravitino Docker images.
-## Publish Docker Images to Docker Hub
+## Publish Docker images to Docker Hub
-We use Github Actions to publish the docker images to the DockerHub repository.
+You can use GitHub actions to publish Docker images to the Docker Hub repository.
1. Open the <https://github.com/datastrato/gravitino/actions/workflows/docker-image.yml>
2. Click the `Run workflow` button.
3. Select the branch you want to build
- + If you select `main` branch, the docker image will be published with the specified tag and the `latest` tag.
- + If you select another branch, the docker image will only publish the specified tag.
+ + Selecting the main branch results in publishing the Docker image with the specified tag and the latest tag.
+ + Selecting another branch, results is publishing the Docker image with the specified tag.
4. Choose the image you want to build
+ `datastrato/gravitino-ci-hive`.
+ `datastrato/gravitino-ci-trino`.
- + Other data sources will be supported in the future.
-4. Input the `tag name`, for example: `0.1.0`, Then build and push the docker image name is `datastrato/{image-name}:0.1.0`.
-5. You must enter the correct `publish docker token` before you can execute run `Publish Docker Image` workflow.
-6. Wait for the workflow to complete. You can see a new docker image shown in the [datastrato](https://hub.docker.com/u/datastrato) DockerHub repository.
+ + Future plans include support for other data sources.
+5. Input the `tag name`, for example: `0.1.0`, Then build and push the Docker image name is `datastrato/{image-name}:0.1.0`.
+6. You must enter the correct `publish docker token` before you can execute run `Publish Docker Image` workflow.
+7. Wait for the workflow to complete. You can see a new Docker image shown in the [Datastrato Docker Hub](https://hub.docker.com/u/datastrato) repository.
-![Publish Docker Image](assets/publish-docker-image.png)
+![Publish Dockerimage](assets/publish-docker-image.png)
-## The Version of Gravitino Docker images
+## The version of Gravitino Docker images
+ [Gravitino Docker images](../dev/docker/README.md)
diff --git a/docs/quick_start.md b/docs/quick_start.md
index dcb3570d72..9c03de7d16 100644
--- a/docs/quick_start.md
+++ b/docs/quick_start.md
@@ -13,10 +13,10 @@ Gravitino is a high-performance, geo-distributed, and federated metadata lake. I
You can build from [Github](https://github.com/datastrato/gravitino), see [how to build](/docs/how-to-build) for instructions, or use our docker images at [datastrato](https://hub.docker.com/u/datastrato) DockerHub repository. You can also stop and start a local Gravitino server via ``bin/gravitino.sh start`` and ``bin/gravitino.sh stop`` in a Gravitino distribution, see [how to build](/docs/how-to-build) for more instructions.
-## Where is the Documentation?
+## Where is the documentation?
Gravitino has a local documentation website that you can view by following the instructions in ``README.md``.
## How to contribute to Gravitino?
-Gravitino is open source software under the Apache License version 2, contributions to our report on [GitHub](https://github.com/datastrato/gravitino) are welcome.
+Gravitino is open source software under the Apache License version 2, contributions to the repository in [GitHub](https://github.com/datastrato/gravitino) are welcome.
diff --git a/docs/security.md b/docs/security.md
index 9189972c5d..c241ede860 100644
--- a/docs/security.md
+++ b/docs/security.md
@@ -6,13 +6,16 @@ This software is licensed under the Apache License version 2."
---
## Authentication
-Gravitino supports two kinds of authentication mechanism: simple and oauth.
+
+Gravitino supports two kinds of authentication mechanisms: simple and OAuth.
### Simple mode
+
Simple mode is the default authentication option.
Simple mode allows the client to use the environment variable `GRAVITINO_USER` as the user.
-If the environment variable `GRAVITINO_USER` is not set, client will use the user of the machine which sends requests.
-For client side, users can enable `simple` mode by the code as below:
+If the environment variable `GRAVITINO_USER` isn't set, the client uses the user of the machine that sends requests.
+For the client side, users can enable `simple` mode by the following code:
+
```java
GravitinoClient client = GravitinoClient.builder(uri)
.withSimpleAuth()
@@ -20,10 +23,12 @@ GravitinoClient client = GravitinoClient.builder(uri)
```
### OAuth mode
-Gravitino only supports external OAuth 2.0 server now.
-First, users need to guarantee that the external OAuth 2.0 server supports Bearer JWT and is configured properly.
-Then, for server side, users should set `gravitino.authenticator` as `oauth` and give `gravitino.authenticator.oauth.defaultSignKey` a proper value.
-Next, for client side, users can enable `oauth` mode by the code as below:
+
+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` a proper value.
+Next, for the client side, users can enable `OAuth` mode by the following code:
+
```java
DefaultOAuth2TokenProvider authDataProvider = DefaultOAuth2TokenProvider.builder()
.withUri("oauth server uri")
@@ -37,18 +42,17 @@ GravitinoClient client = GravitinoClient.builder(uri)
.build();
```
-
### Server configuration
| Configuration item | Description | Default value | Since version |
|---------------------------------------------------|----------------------------------------------------------------------------|-------------------|---------------|
| `gravitino.authenticator` | The authenticator which Gravitino uses, setting as `simple` or `oauth` | `simple` | 0.3.0 |
-| `gravitino.authenticator.oauth.serviceAudience` | The audience name when Gravitino uses oauth as the authenticator | `GravitinoServer` | 0.3.0 |
-| `gravitino.authenticator.oauth.allowSkewSecs` | The jwt allows skew seconds when Gravitino uses oauth as the authenticator | `0` | 0.3.0 |
-| `gravitino.authenticator.oauth.defaultSignKey` | The sign key of jwt when Gravitino uses oauth as the authenticator | `` | 0.3.0 |
-| `gravitino.authenticator.oauth.signAlgorithmType` | The signature algorithm when Gravitino uses oauth as the authenticator | `RS256` | 0.3.0 |
+| `gravitino.authenticator.oauth.serviceAudience` | The audience name when Gravitino uses OAuth as the authenticator | `GravitinoServer` | 0.3.0 |
+| `gravitino.authenticator.oauth.allowSkewSecs` | The JWT allows skew seconds when Gravitino uses OAuth as the authenticator | `0` | 0.3.0 |
+| `gravitino.authenticator.oauth.defaultSignKey` | The signing key of JWT when Gravitino uses OAuth as the authenticator | `` | 0.3.0 |
+| `gravitino.authenticator.oauth.signAlgorithmType` | The signature algorithm when Gravitino uses OAuth as the authenticator | `RS256` | 0.3.0 |
-The signature algorithm which Gravitino supports is as below:
+The signature algorithms that Gravitino supports follows:
| Name | Description |
|-------|------------------------------------------------|
diff --git a/docs/trino-gravitino-connector.md b/docs/trino-gravitino-connector.md
index e2b43668bb..ebac44ed52 100644
--- a/docs/trino-gravitino-connector.md
+++ b/docs/trino-gravitino-connector.md
@@ -4,78 +4,86 @@ date: 2023-10-17T11:05:00-08:00
license: "Copyright 2023 Datastrato.
This software is licensed under the Apache License version 2."
---
-# Gravitino connector
+## Gravitino connector
-The Gravitino connector allows query tables managed by Gravitino.
-This can be used to manage catalogs, schemas, and tables and dynamically load them into trino.
-And query data in the original databases on the server,
-or combine it with other data from different catalogs accessing any other supported data source.
+The Gravitino connector manages query tables with Gravitino.
+Manage catalogs, schemas, and tables using this to dynamically load them into Trino. Query data from databases on the server or combine it with other data from different catalogs accessed from any other supported data source.
### Supported catalog types
+
The Gravitino connector supports various Trino connector types, including:
+
- [Hive catalog](gravitino-manage-hive.md)
-# Requirements
+## Requirements
To connect to a Gravitino server, you should ensure the following things.
+
- Trino server version is higher than Trino-server-360.
-- The trino coordinators and workers can connect/access to the Gravitino server, and the default port of Gravitino server is 8090
-- Trino needs to install connectors for all the types of Gravitino-managed catalogs.
+- Trino's coordinators and workers can connect/access the Gravitino server, and the default port of the Gravitino server is 8090.
+- Trino needs to install connectors for all different types of Gravitino-managed catalogs.
-# Installation
+## Installation
-To install the Gravitino connector, you should deploy the Trino environment first.
-Then install the Gravitino connector plugin to Trino.
+To install the Gravitino connector, first deploy the Trino environment, and then install the Gravitino connector plugin into Trino.
Please refer to the [Deploying Trino documentation](https://trino.io/docs/current/installation/deployment.html).
-1. Download Gravitino connector tarball and unpack it.
+
+1. Download the Gravitino connector tarball and unpack it.
The tarball contains a single top-level directory `gravitino-trino-connector-xxx`,
which we call the connector directory.
- [Download the gravitino-connector](https://github.com/datastrato/gravitino/releases).
-2. Copy the connector directory to trino plugin's directory.
+ [Download the gravitino-connector](https://github.com/datastrato/gravitino/releases).
+2. Copy the connector directory to the Trino's plugin directory.
Normally, the directory location is `Trino-server-xxx/plugin`, and the directory contains other catalogs used by Trino.
-3. Add trino jvm arguments `-Dlog4j.configurationFile=file:///xxx/log4j2.properties` to enable logging for the Gravitino connector.
+3. Add Trino JVM arguments `-Dlog4j.configurationFile=file:///xxx/log4j2.properties` to enable logging for the Gravitino connector.
Alternatively,
you can build the Gravitino connector package from sources
and obtain the `gravitino-trino-connector-xxx.tar.gz` file in the `$PROJECT/distribution` directory.
Please refer to the [Gravitino Development documentation](how-to-build.md)
-# Configuration
+## Configuration
-The connector can access a Gravitino server. Create a catalog properties file that specifies the Gravitino connector by setting the
-`connector.name` to `gravitino`.
+The connector can access a Gravitino server. Create a catalog properties file that specifies the Gravitino connector by setting the `connector.name` to `gravitino`.
For example, create the file etc/catalog/gravitino.properties. Replace the connection properties as appropriate for your setup:
-```
+```text
connector.name=gravitino
gravitino.uri=http://host:8090
gravitino.metalake=test
```
-The `gravitino.uri` defines the connection information about Gravitino server.
+
+The `gravitino.uri` defines the connection information about Gravitino server.
The `gravitino.metalake` defines which metalake are used. It should exist in the Gravitino server.
Please refer to the [Metalake documentation](overview.md#terminology )
-## Multiple Gravitino metalakes
+### Multiple Gravitino metalakes
+
If you have multiple Gravitino metalakes, you need to configure a catalog for each metalake. To add another catalog:
+
- Add another properties file to `etc/catalog`
- Save it with a different name that ends in `.properties`
For example, if you name the property file sales.properties. Trino uses the configured connector to create a catalog named `sales`
-# SQL support
+## SQL support
+
The connector provides read access and write access to data and metadata in the Gravitino-managed catalogs and its storage system.
-## Basic usage examples
+### Basic usage examples
+
First, you need to create a metalake and catalog in Gravitino.
For example, create a new metalake named `test` and create a new catalog named `hive_test` using the hive provider.
Listing all Gravitino manager catalogs
-```
+
+```sql
show catalogs
```
+
The results like:
-```
+
+```text
Catalog
----------------
gravitino
@@ -88,19 +96,20 @@ Query 20231017_082503_00018_6nt3n, FINISHED, 1 node
```
The `gravitino` catalog is a catalog defined Trino catalog configuration.
-We generally do not use it.
-The `test.hive_test` catalog is Gravitino managed catalog.
-It is dynamically loaded by the `gravitino` catalog from Gravitino.
-It is a Hive catalog.
+Is is generally not used.
+The `test.hive_test` catalog is Gravitino Hive managed catalog,
+dynamically loaded from the `gravitino` catalog in Gravitino.
Other catalogs are regular user-configured Trino catalogs.
Create a new schema named `database_01` in `test.hive_test` catalog.
-```
+
+```sql
create schema "test.hive_test".database_01;
```
-Create a new table named `table_01` in schema `"test.hive_test".database_01`. That is stored using the TEXTFILE format.
-```
+Create a new table named `table_01` in schema `"test.hive_test".database_01` and stored in a TEXTFILE format.
+
+```sql
create table "test.hive_test".database_01.table_01
(
name varchar,
@@ -112,21 +121,25 @@ WITH (
```
Drop a schema:
-```
+
+```sql
drop schema "test.hive_test".database_01;
```
Drop a table:
-```
+
+```sql
drop table "test.hive_test".database_01.table_01;
```
-Query the `table_01` table:
-```
+Query the `table_01` table:
+
+```sql
select * from "test.hive_test".database_01.table_01;
```
-Insert data to the table `table_01`:
-```
+Insert data into the table `table_01`:
+
+```sql
insert into "test.hive_test".database_01.table_01 (name, salary) values ('ice', 12);
```