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 fba132e3f [docs] Trino docs update for sharing file system. (#3035)
fba132e3f is described below

commit fba132e3f8bb67f7a55392c5f3926a8cdf263105
Author: YeJunHao <[email protected]>
AuthorDate: Mon Mar 18 16:10:50 2024 +0800

    [docs] Trino docs update for sharing file system. (#3035)
---
 docs/content/engines/overview.md       |  7 ++--
 docs/content/engines/trino.md          | 61 +++++++++++++---------------------
 docs/content/filesystems/oss.md        | 14 ++++----
 docs/content/filesystems/s3.md         |  9 ++---
 docs/content/how-to/altering-tables.md |  2 +-
 docs/content/how-to/querying-tables.md | 12 +------
 docs/content/project/download.md       |  7 +---
 7 files changed, 39 insertions(+), 73 deletions(-)

diff --git a/docs/content/engines/overview.md b/docs/content/engines/overview.md
index 05aa69e86..31c5eb7a7 100644
--- a/docs/content/engines/overview.md
+++ b/docs/content/engines/overview.md
@@ -38,10 +38,11 @@ Apache Spark and Apache Hive.
 | Spark  |   3.1 - 3.5   |     ✅      |      ✅      |      ✅       |      ✅    
  |        ✅        |    ✅(3.3+)     |        ✅        |
 |  Hive  |   2.1 - 3.1   |     ✅      |      ✅      |      ✅       |      ❌    
  |        ❌        |       ❌        |        ❌        |
 | Spark  |      2.4      |     ✅      |      ❌      |      ❌       |      ❌    
  |        ❌        |       ❌        |        ❌        |
-| Trino  |   358 - 422   |     ✅      |      ❌      |      ✅       |      ✅    
  |        ❌        |       ❌        |        ❌        |
+| Trino  |   422 - 426   |     ✅      |      ❌      |      ❌       |      ❌    
  |        ❌        |       ❌        |        ❌        |
+| Trino  |   427 - 439   |     ✅      |      ❌      |      ✅       |      ✅    
  |        ❌        |       ❌        |        ❌        |
 | Presto | 0.236 - 0.280 |     ✅      |      ❌      |      ✅       |      ✅    
  |        ❌        |       ❌        |        ❌        |
-| 
[StarRocks](https://docs.starrocks.io/docs/data_source/catalog/paimon_catalog/) 
| 3.1+       |     ✅      |      ❌      |      ❌       |      ❌      |        ❌ 
       |       ❌        |        ❌        |
-| [Doris](https://doris.apache.org/docs/lakehouse/multi-catalog/paimon/) | 
2.0+       |     ✅      |      ❌      |      ❌       |      ❌      |        ❌   
     |       ❌        |        ❌        |
+| 
[StarRocks](https://docs.starrocks.io/docs/data_source/catalog/paimon_catalog/) 
|     3.1+      |     ✅      |      ❌      |      ❌       |      ❌      |       
 ❌        |       ❌        |        ❌        |
+| [Doris](https://doris.apache.org/docs/lakehouse/multi-catalog/paimon/) |     
2.0+      |     ✅      |      ❌      |      ❌       |      ❌      |        ❌    
    |       ❌        |        ❌        |
 
 Recommended versions are Flink 1.17.2, Spark 3.5.0, Hive 2.3.9
 
diff --git a/docs/content/engines/trino.md b/docs/content/engines/trino.md
index 1a6e06d2e..9c2bdfd3f 100644
--- a/docs/content/engines/trino.md
+++ b/docs/content/engines/trino.md
@@ -30,7 +30,13 @@ This documentation is a guide for using Paimon in Trino.
 
 ## Version
 
-Paimon currently supports Trino 358 and above.
+Paimon currently supports Trino 422 and above.
+
+## Filesystem
+
+From version 0.8, paimon share trino filesystem for all actions, which means, 
iyou should 
+config trino filesystem before using trino-paimon. You can find information 
about how to config
+filesystems for trino on trino official website.
 
 ## Preparing Paimon Jar File
 
@@ -43,38 +49,17 @@ https://paimon.apache.org/docs/master/project/download/
 
 {{< unstable >}}
 
-| 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 >}}/) |
+| Version       | Package                                                      
                                                                                
 |
+|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
+| [422, 427]    | [paimon-trino-422-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-422/{{<
 version >}}/) |
+| [427, latest] | [paimon-trino-427-{{< version 
>}}-plugin.tar.gz](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-427/{{<
 version >}}/) |
 
 {{< /unstable >}}
 
 You can also manually build a bundled jar from the source code. However, there 
are a few preliminary steps that need to be taken before compiling:
 
 - To build from the source code, [clone the git repository]({{< 
trino_github_repo >}}).
-- Install JDK11 and JDK17 locally, and configure JDK11 as a global environment 
variable;
-- Configure the toolchains.xml file in ${{ MAVEN_HOME }}, the content is as 
follows.
-
-```
- <toolchains>
-    <toolchain>
-        <type>jdk</type>
-        <provides>
-            <version>17</version>
-            <vendor>adopt</vendor>
-        </provides>
-        <configuration>
-            <jdkHome>${{ JAVA_HOME }}</jdkHome>
-        </configuration>
-    </toolchain>
- </toolchains>          
-```
+- Install JDK17 locally, and configure JDK17 as a global environment variable;
 
 Then,you can build bundled jar with the following command:
 
@@ -111,7 +96,7 @@ Let Paimon use a secure temporary directory.
 ```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.
+the variable `trino-version` is module name, must be one of 422, 427.
 > 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
@@ -128,6 +113,15 @@ If you are using HDFS, choose one of the following ways to 
configure your HDFS:
 - set environment variable HADOOP_CONF_DIR.
 - configure `hadoop-conf-dir` in the properties.
 
+If you are using a hadoop filesystem, you can still use trino-hdfs and 
trino-hive to config it.
+For example, if you use oss as a storage, you can write in `paimon.properties` 
according to [Trino 
Reference](https://trino.io/docs/current/connector/hive.html#hdfs-configuration):
+
+```
+hive.config.resources=/path/to/core-site.xml
+```
+
+Then, config core-site.xml according to [Jindo 
Reference](https://github.com/aliyun/alibabacloud-jindodata/blob/master/docs/user/4.x/4.6.x/4.6.12/oss/presto/jindosdk_on_presto.md)
+
 ## Kerberos
 
 You can configure kerberos keytab file when using KERBEROS authentication in 
the properties.
@@ -194,7 +188,7 @@ SELECT * FROM paimon.test_db.orders
 ## Query with Time Traveling
 {{< tabs "time-travel-example" >}}
 
-{{< tab "version >=368" >}}
+{{< tab "version >=422" >}}
 
 ```sql
 -- read the snapshot from specified timestamp
@@ -206,15 +200,6 @@ SELECT * FROM t FOR VERSION AS OF 1;
 
 {{< /tab >}}
 
-{{< tab "version < 368" >}}
-
-```sql
--- read the snapshot from specified timestamp with a long value in unix 
milliseconds
-SET SESSION paimon.scan_timestamp_millis=1679486589444;
-SELECT * FROM t;
-```
-
-{{< /tab >}}
 
 {{< /tabs >}}
 
diff --git a/docs/content/filesystems/oss.md b/docs/content/filesystems/oss.md
index 472d81f1f..c2cd98848 100644
--- a/docs/content/filesystems/oss.md
+++ b/docs/content/filesystems/oss.md
@@ -106,14 +106,14 @@ SELECT COUNT(1) FROM test_table;
 
 {{< tab "Trino" >}}
 
-Place `paimon-oss-{{< version >}}.jar` together with `paimon-trino-{{< version 
>}}.jar` under `plugin/paimon` directory.
+From version 0.8, paimon-trino use trino filesystem as basic file read and 
write system. We strongly recommend you to use jindo-sdk in trino.
+
+You can find [How to config jindo sdk on 
trino](https://github.com/aliyun/alibabacloud-jindodata/blob/master/docs/user/4.x/4.6.x/4.6.12/oss/presto/jindosdk_on_presto.md)
 here.
+Please note that:
+  * Use paimon to replace hive-hadoop2 when you decompress the plugin jar and 
find location to put in.
+  * You can specify the `core-site.xml` in `paimon.properties` on 
configuration 
[hive.config.resources](https://trino.io/docs/current/connector/hive.html#hdfs-configuration).
+  * Presto and Jindo are the in the same configaration method.
 
-Add options in `etc/catalog/paimon.properties`.
-```shell
-fs.oss.endpoint=oss-cn-hangzhou.aliyuncs.com
-fs.oss.accessKeyId=xxx
-fs.oss.accessKeySecret=yyy
-```
 
 {{< /tab >}}
 
diff --git a/docs/content/filesystems/s3.md b/docs/content/filesystems/s3.md
index d1334fda8..23d96be57 100644
--- a/docs/content/filesystems/s3.md
+++ b/docs/content/filesystems/s3.md
@@ -106,14 +106,9 @@ SELECT COUNT(1) FROM test_table;
 
 {{< tab "Trino" >}}
 
-Place `paimon-s3-{{< version >}}.jar` together with `paimon-trino-{{< version 
>}}.jar` under `plugin/paimon` directory.
+Paimon use shared trino filesystem as basic read and write system.
 
-Add options in `etc/catalog/paimon.properties`.
-```shell
-s3.endpoint=your-endpoint-hostname
-s3.access-key=xxx
-s3.secret-key=yyy
-```
+Please refer to [Trino 
S3](https://trino.io/docs/current/object-storage/file-system-s3.html) to config 
s3 filesystem in trino.
 
 {{< /tab >}}
 
diff --git a/docs/content/how-to/altering-tables.md 
b/docs/content/how-to/altering-tables.md
index ce9ca73d7..5a6045cba 100644
--- a/docs/content/how-to/altering-tables.md
+++ b/docs/content/how-to/altering-tables.md
@@ -58,7 +58,7 @@ ALTER TABLE my_table SET TBLPROPERTIES (
 ALTER TABLE my_table SET PROPERTIES write_buffer_size = '256 MB';
 ```
 
-> NOTE: Versions below Trino 368 do not support changing/adding table 
properties.
+> NOTE: Versions below Trino 427 do not support changing/adding table 
properties.
 
 {{< /tab >}}
 
diff --git a/docs/content/how-to/querying-tables.md 
b/docs/content/how-to/querying-tables.md
index de74c7c96..ce6c74521 100644
--- a/docs/content/how-to/querying-tables.md
+++ b/docs/content/how-to/querying-tables.md
@@ -123,17 +123,7 @@ spark.read
 
 {{< /tab >}}
 
-{{< tab "Trino" >}}
-
-```sql
--- read the snapshot from specified timestamp with a long value in unix 
milliseconds
-SET SESSION paimon.scan_timestamp_millis=1679486589444;
-SELECT * FROM t;
-```
-
-{{< /tab >}}
-
-{{< tab "Trino 368+" >}}
+{{< tab "Trino 422+" >}}
 
 ```sql
 -- read the snapshot from specified timestamp
diff --git a/docs/content/project/download.md b/docs/content/project/download.md
index 4d8bc1fc9..9b39cc8ee 100644
--- a/docs/content/project/download.md
+++ b/docs/content/project/download.md
@@ -53,13 +53,8 @@ This documentation is a guide for downloading Paimon Jars.
 | Presto 0.268     | [paimon-presto-0.268-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-presto-0.268/{{<
 version >}}/)                             |
 | Presto 0.273     | [paimon-presto-0.273-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-presto-0.273/{{<
 version >}}/)                             |
 | Presto SQL 332   | [paimon-prestosql-332-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-prestosql-332/{{<
 version >}}/)                           |
-| Trino 358        | [paimon-trino-358-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-358/{{<
 version >}}/)                                   |
-| Trino 368        | [paimon-trino-368-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-368/{{<
 version >}}/)                                   |
-| Trino 369        | [paimon-trino-369-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-369/{{<
 version >}}/)                                   |
-| Trino 370        | [paimon-trino-370-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-370/{{<
 version >}}/)                                   |
-| Trino 388        | [paimon-trino-388-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-388/{{<
 version >}}/)                                   |
-| Trino 393        | [paimon-trino-393-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-393/{{<
 version >}}/)                                   |
 | Trino 422        | [paimon-trino-422-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-422/{{<
 version >}}/)                                   |
+| Trino 427        | [paimon-trino-427-{{< version 
>}}.jar](https://repository.apache.org/snapshots/org/apache/paimon/paimon-trino-427/{{<
 version >}}/)                                   |
 
 {{< /unstable >}}
 

Reply via email to