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 35cc114be [doc] Document tmp dir for trino and presto
35cc114be is described below
commit 35cc114be3d7e0b0349ba044158453276c504b5a
Author: JingsongLi <[email protected]>
AuthorDate: Tue Jul 4 16:46:32 2023 +0800
[doc] Document tmp dir for trino and presto
---
docs/content/engines/presto.md | 12 ++++++++++++
docs/content/engines/trino.md | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/docs/content/engines/presto.md b/docs/content/engines/presto.md
index 5f96b6091..28a68b396 100644
--- a/docs/content/engines/presto.md
+++ b/docs/content/engines/presto.md
@@ -70,6 +70,18 @@ You can find Presto connector jar in
`./paimon-presto-<presto-version>/target/pa
Then, copy `paimon-presto-*.jar and flink-shaded-hadoop-*-uber-*.jar` to
plugin/paimon.
+## Tmp Dir
+
+Paimon will unzip some jars to the tmp directory for codegen. By default,
Presto will use `'/tmp'` as the temporary
+directory, but `'/tmp'` may be periodically deleted.
+
+You can configure this environment variable when Presto starts:
+```shell
+-Djava.io.tmpdir=/path/to/other/tmpdir
+```
+
+Let Paimon use a secure temporary directory.
+
## Configure Paimon Catalog
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:
diff --git a/docs/content/engines/trino.md b/docs/content/engines/trino.md
index 65bfaf49a..42aa0ac8e 100644
--- a/docs/content/engines/trino.md
+++ b/docs/content/engines/trino.md
@@ -95,6 +95,18 @@ Then, copy `paimon-trino-*.jar and
flink-shaded-hadoop-*-uber-*.jar` to plugin/p
> 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`
+## Tmp Dir
+
+Paimon will unzip some jars to the tmp directory for codegen. By default,
Trino will use `'/tmp'` as the temporary
+directory, but `'/tmp'` may be periodically deleted.
+
+You can configure this environment variable when Trino starts:
+```shell
+-Djava.io.tmpdir=/path/to/other/tmpdir
+```
+
+Let Paimon use a secure temporary directory.
+
## Configure Paimon Catalog
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: