World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#3218]fix(doc): Fix the wrong sequence number issue in doc and improve the wording (#3219)
Jerry Shao4c7692464fb9
diff --git a/docs/how-to-build.md b/docs/how-to-build.mdindex 903a408dff..0d3eb56a61 100644--- a/docs/how-to-build.md+++ b/docs/how-to-build.md@@ -10,6 +10,7 @@ This software is licensed under the Apache License version 2."+ Linux or macOS operating system+ Git+ A Java Development Kit, version 8 to 17, installed in your environment to launch Gradle++ Python 3.8, 3.9, 3.10, or 3.11 to build the Gravitino Python client+ Optionally, Docker to run integration tests:::info Please read the following notes before trying to build Gravitino.@@ -59,10 +60,12 @@ This software is licensed under the Apache License version 2."./gradlew build -PjdkVersion=17```-3. Build the Gravitino Python client.+ The `./gradlew build` command builds all the Gravitino components, including Gravitino+ server, Java and Python client, Trino and Spark connectors, and more.- The default specified Python version is 3.8, if you want to use Python 3.9, 3.10 or 3.11 to build,- modify the property `pythonVersion` to 3.9, 3.10 or 3.11 in the `gradle.properties` file, or specify the version+ For Python client, the `./gradlew build` command builds the Python client with Python 3.8+ by default. If you want to use Python 3.9, 3.10 or 3.11 to build, please modify the property+ `pythonVersion` to 3.9, 3.10 or 3.11 in the `gradle.properties` file, or specify the versionwith `-P`, like:```shell@@ -81,25 +84,29 @@ This software is licensed under the Apache License version 2."./gradlew build -PpythonVersion=3.11```-4. Build Gravitino Spark connector+ If you want to build some modules alone, like Spark connector, you can use Gradle build task+ with specific module name, like:```shell./gradlew spark-connector:spark-connector-runtime:build```- This creates `gravitino-spark-connector-runtime-{sparkVersion}_{scalaVersion}-{version}.jar` under the `spark-connector/spark-connector-runtime/build/libs` directory.+ This creates `gravitino-spark-connector-runtime-{sparkVersion}_{scalaVersion}-{version}.jar`+ under the `spark-connector/spark-connector-runtime/build/libs` directory.+ :::note+ The first time you build the project, downloading the dependencies may take a while. You can add+ `-x test` to skip the tests, by using `./gradlew build -x test`.++ The built Gravitino libraries are Java 8 compatible, and verified under Java 8, 11, and 17+ environments. You can use Java 8, 11, 17 runtimes to run the Gravitino server, no matter which+ JDK version you use to build the project.-:::note-The first time you build the project, downloading the dependencies may take a while. You can add-`-x test` to skip the tests, by using `./gradlew build -x test`.--The built Gravitino libraries are Java 8 compatible, and verified under Java 8, 11, and 17-environments. You can use Java 8, 11, 17 runtimes to run the Gravitino server, no matter which-JDK version you use to build the project.-:::+ The built jars are under the `build/libs` directory of the modules. You can publish them to your+ Maven repository to use them in your project.+ :::-3. Get the Gravitino binary package.+3. Get the Gravitino server binary package.```shell./gradlew compileDistribution@@ -109,11 +116,11 @@ JDK version you use to build the project.The directory structure of the `distribution` directory is as follows:-:::note-The `./gradlew clean` command deletes the `distribution` directory.-:::+ :::note+ The `./gradlew clean` command deletes the `distribution` directory.+ :::-4. Assemble the Gravitino distribution package.+4. Assemble the Gravitino server distribution package.```shell./gradlew assembleDistribution@@ -123,11 +130,11 @@ The `./gradlew clean` command deletes 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.-:::+ :::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.+ :::5. Assemble the Gravitino Trino connector package@@ -141,4 +148,6 @@ server distribution package../gradlew assembleDistribution```- This creates `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. You+ can uncompress and deploy it to Trino to use the Gravitino Trino connector.