World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#1181] feat(doc): Improve the doc to support multiple jdk version (#1219)
Jerry Shao0cbf4fe368b6
diff --git a/docs/getting-started.md b/docs/getting-started.mdindex 37c0d55d93..d147f8f619 100644--- a/docs/getting-started.md+++ b/docs/getting-started.md@@ -45,10 +45,11 @@ To begin using Gravitino on AWS, follow these steps:You may need to reboot the instance for all changes to take effect.-4. Install the required Java Development Kit for Gravitino:+4. Install the required Java Development Kit for Gravitino, Gravitino supports running on Java 8,+ 11 and 17, you can install any of them:```shell- sudo apt install openjdk-8-jdk-headless+ sudo apt install openjdk-<version>-jdk-headless```Verify the Java version with:@@ -57,7 +58,7 @@ To begin using Gravitino on AWS, follow these steps:java -version```- You should see information about OpenJDK 8.+ You should see information about OpenJDK version.5. Install Gravitino on the instance:@@ -90,12 +91,13 @@ To begin using Gravitino on GCP, follow these steps:You may need to reboot the instance for all changes to take effect.-4. Install the required Java Development Kit for Gravitino:+4. Install the required Java Development Kit for Gravitino, Gravitino supports running on Java 8,+ 11 and 17, you can install any of them:```shellwget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.listsudo apt-get update- sudo apt-get install -y java-1.8.0-amazon-corretto-jdk+ sudo apt-get install -y java-<version>-amazon-corretto-jdk```Verify the Java version with:@@ -104,7 +106,7 @@ To begin using Gravitino on GCP, follow these steps:java -version```- You should see information about OpenJDK 8.+ You should see information about OpenJDK version.5. Install Gravitino on the instance:@@ -124,10 +126,11 @@ To begin using Gravitino on GCP, follow these steps:To use Gravitino locally on macOS or Linux, follow similar steps:-1. Install the required Java Development Kit using [sdkman](https://sdkman.io/) for example:+1. Install the required Java Development Kit, Gravitino supports running on Java 8,+ 11 and 17, you can install any of them. Using [sdkman](https://sdkman.io/) for example:```shell- sdk install java 8.0.392-amzn+ sdk install java <version>```You can also use different package managers to install JDK, for example,diff --git a/docs/how-to-build.md b/docs/how-to-build.mdindex aa742cc9b4..8b68536009 100644--- a/docs/how-to-build.md+++ b/docs/how-to-build.md@@ -16,8 +16,9 @@ This software is licensed under the Apache License version 2."+ Gravitino requires at least JDK8 and at most JDK17 to run Gradle, so you need toinstall JDK8 to 17 version to launch the build environment.-+ 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 itself supports using JDK8, 11, and 17 to build, Gravitino Trino connector uses+ JDK17 to build. You don't have to preinstall the specified JDK environment,++ Gradle detects the JDK version needed and downloads it automatically.+ Gravitino uses Gradle Java Toolchain to detect and manage JDK versions, it checks theinstalled JDK by running `./gradlew javaToolchains` command. For the details of Gradle Java@@ -50,9 +51,27 @@ This software is licensed under the Apache License version 2."./gradlew build```+ The default specified JDK version is 8, if you want to use JDK 11 or 17 to build, you can+ modify the property `jdkVersion` to 11 or 17 in `gradle.properties` file, or you can specify+ with `-P`, like:++ ```shell+ ./gradlew build -PjdkVersion=11+ ```++ Or:++ ```shell+ ./gradlew build -PjdkVersion=17+ ```+:::noteThe 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+environment. You can use Java 8, 11, 17 runtime to run the Gravitino server, no matter which+JDK version you use to build the project.:::3. Get the Gravitino binary package.diff --git a/docs/how-to-install.md b/docs/how-to-install.mdindex 6f3c5beec3..7795392761 100644--- a/docs/how-to-install.md+++ b/docs/how-to-install.md@@ -8,8 +8,9 @@ This software is licensed under the Apache License version 2."## Install Gravitino from scratch:::note-Gravitino requires JDK8 to run, please make sure you have JDK8 installed and `JAVA_HOME`-configured correctly. To confirm the Java version, you can simply run `${JAVA_HOME}/bin/java -version` command.+Gravitino supports running on Java 8, 11, and 17, please make sure you have Java installed and+`JAVA_HOME` configured correctly. To confirm the Java version, you can simply run+`${JAVA_HOME}/bin/java -version` command.:::### Get the Gravitino binary distribution package