This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bd47e4a2 [doc] Change to Trino documentation regarding installation 
methods (#2542)
5bd47e4a2 is described below

commit 5bd47e4a289841de0aeee2be4f5642be646e62e5
Author: shidayang <[email protected]>
AuthorDate: Wed Dec 20 21:23:18 2023 +0800

    [doc] Change to Trino documentation regarding installation methods (#2542)
---
 docs/content/engines/trino.md | 37 +++++++++++++++++++++++++------------
 1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/docs/content/engines/trino.md b/docs/content/engines/trino.md
index 053157c19..1a6e06d2e 100644
--- a/docs/content/engines/trino.md
+++ b/docs/content/engines/trino.md
@@ -43,15 +43,15 @@ https://paimon.apache.org/docs/master/project/download/
 
 {{< unstable >}}
 
-| Version    | Jar                                                             
                                                                    |
-|------------|-------------------------------------------------------------------------------------------------------------------------------------|
-| [358, 368) | [paimon-trino-358-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-358/{{<
 version >}}/) |
-| [368, 369) | [paimon-trino-368-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-368/{{<
 version >}}/) |
-| [369, 370) | [paimon-trino-369-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-369/{{<
 version >}}/) |
-| [370, 388) | [paimon-trino-370-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-370/{{<
 version >}}/) |
-| [388, 393) | [paimon-trino-388-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-388/{{<
 version >}}/) |
-| [393, 422] | [paimon-trino-393-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-393/{{<
 version >}}/) |
-| [422, latest] | [paimon-trino-422-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-422/{{<
 version >}}/) |
+| Version    | Package                                                         
                                                                              |
+|------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
+| [358, 368) | [paimon-trino-358-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-358/{{<
 version >}}/) |
+| [368, 369) | [paimon-trino-368-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-368/{{<
 version >}}/) |
+| [369, 370) | [paimon-trino-369-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-369/{{<
 version >}}/) |
+| [370, 388) | [paimon-trino-370-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-370/{{<
 version >}}/) |
+| [388, 393) | [paimon-trino-388-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-388/{{<
 version >}}/) |
+| [393, 422] | [paimon-trino-393-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-393/{{<
 version >}}/) |
+| [422, latest] | [paimon-trino-422-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-422/{{<
 version >}}/) |
 
 {{< /unstable >}}
 
@@ -82,11 +82,16 @@ Then,you can build bundled jar with the following command:
 mvn clean install -DskipTests
 ```
 
-You can find Trino connector jar in 
`./paimon-trino-<trino-version>/target/paimon-trino-*.jar`.
+You can find Trino connector jar in 
`./paimon-trino-<trino-version>/target/paimon-trino-<trino-version>-{{< version 
>}}-plugin.tar.gz`.
 
-Then, copy `paimon-trino-*.jar and flink-shaded-hadoop-*-uber-*.jar` to 
plugin/paimon.
+We use 
[hadoop-apache](https://mvnrepository.com/artifact/io.trino.hadoop/hadoop-apache)
 as a dependency for Hadoop,
+and the default Hadoop dependency typically supports both Hadoop 2 and Hadoop 
3. 
+If you encounter an unsupported scenario, you can specify the corresponding 
Apache Hadoop version.
 
-> NOTE: For JDK 17, when Deploying Trino, should add jvm options: 
`--add-opens=java.base/sun.nio.ch=ALL-UNNAMED 
--add-opens=java.base/java.nio=ALL-UNNAMED`
+For example, if you want to use Hadoop 3.3.5-1, you can use the following 
command to build the jar:
+```
+mvn clean install -DskipTests -Dhadoop.apache.version=3.3.5-1
+```
 
 ## Tmp Dir
 
@@ -102,6 +107,14 @@ Let Paimon use a secure temporary directory.
 
 ## Configure Paimon Catalog
 
+### Install Paimon Connector
+```bash
+tar -zxf paimon-trino-<trino-version>-{{< version >}}-plugin.tar.gz -C 
${TRINO_HOME}/plugin
+```
+the variable `trino-version` is module name, must be one of 358, 368, 369, 
370, 388, 393, 422.
+> NOTE: For JDK 17, when Deploying Trino, should add jvm options: 
`--add-opens=java.base/sun.nio.ch=ALL-UNNAMED 
--add-opens=java.base/java.nio=ALL-UNNAMED`
+
+### Configure
 Catalogs are registered by creating a catalog properties file in the 
etc/catalog directory. For example, create etc/catalog/paimon.properties with 
the following contents to mount the paimon connector as the paimon catalog:
 
 ```

Reply via email to