You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2021/08/26 09:02:51 UTC
[flink] branch master updated: [FLINK-23818][python][docs] Add
documentation about tgz files for python archives
This is an automated email from the ASF dual-hosted git repository.
dianfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 5289b0e [FLINK-23818][python][docs] Add documentation about tgz files for python archives
5289b0e is described below
commit 5289b0e3ce7fad03225d064afceda35462454fe2
Author: Dian Fu <di...@apache.org>
AuthorDate: Thu Aug 26 13:03:12 2021 +0800
[FLINK-23818][python][docs] Add documentation about tgz files for python archives
This closes #16993.
---
docs/content.zh/docs/deployment/cli.md | 2 +-
docs/content.zh/docs/dev/python/dependency_management.md | 8 +++++---
docs/content.zh/docs/dev/table/sqlClient.md | 3 +--
docs/content/docs/deployment/cli.md | 2 +-
docs/content/docs/dev/python/dependency_management.md | 8 +++++---
docs/content/docs/dev/table/sqlClient.md | 3 +--
docs/layouts/shortcodes/generated/python_configuration.html | 2 +-
.../main/java/org/apache/flink/client/cli/CliFrontendParser.java | 2 +-
.../src/main/java/org/apache/flink/python/PythonOptions.java | 4 ++--
9 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/docs/content.zh/docs/deployment/cli.md b/docs/content.zh/docs/deployment/cli.md
index f8e333d..cd8b865 100644
--- a/docs/content.zh/docs/deployment/cli.md
+++ b/docs/content.zh/docs/deployment/cli.md
@@ -467,7 +467,7 @@ related options. Here's an overview of all the Python related options for the ac
<td><code class="highlighter-rouge">-pyarch,--pyArchives</code></td>
<td>
Add python archive files for job. The archive files will be extracted to the working directory
- of python UDF worker. Currently only zip-format is supported. For each archive file, a target directory
+ of python UDF worker. For each archive file, a target directory
be specified. If the target directory name is specified, the archive file will be extracted to a
directory with the specified name. Otherwise, the archive file will be extracted to a
directory with the same name of the archive file. The files uploaded via this option are accessible
diff --git a/docs/content.zh/docs/dev/python/dependency_management.md b/docs/content.zh/docs/dev/python/dependency_management.md
index 0f676e8..14ca3cd 100644
--- a/docs/content.zh/docs/dev/python/dependency_management.md
+++ b/docs/content.zh/docs/dev/python/dependency_management.md
@@ -233,7 +233,8 @@ or via [command line arguments]({{< ref "docs/deployment/cli" >}}#submitting-pyf
<span class="label label-info">Note</span> If the archive file contains a Python virtual environment,
please make sure that the Python virtual environment matches the platform that the cluster is running on.
-<span class="label label-info">Note</span> Currently, only zip-format is supported, i.e. zip, jar, whl, egg, etc.
+<span class="label label-info">Note</span> Currently, only zip files (i.e., zip, jar, whl, egg, etc)
+and tar files (i.e., tar, tar.gz, tgz) are supported.
### Python interpreter
@@ -284,8 +285,9 @@ source my_env/bin/activate
```
or specify it using configuration
-[`python.client.executable`]({{< ref "docs/dev/python/python_config" >}}#python-client-executable)
-or environment variable [PYFLINK_CLIENT_EXECUTABLE]({{< ref "docs/dev/python/environment_variables" >}})
+[`python.client.executable`]({{< ref "docs/dev/python/python_config" >}}#python-client-executable),
+[command line arguments]({{< ref "docs/deployment/cli" >}}#submitting-pyflink-jobs) `-pyclientexec` or `--pyClientExecutable`,
+environment variable [PYFLINK_CLIENT_EXECUTABLE]({{< ref "docs/dev/python/environment_variables" >}})
## How to specify Python Dependencies in Java/Scala Program
diff --git a/docs/content.zh/docs/dev/table/sqlClient.md b/docs/content.zh/docs/dev/table/sqlClient.md
index 1a1ac5a..db0ec1b 100644
--- a/docs/content.zh/docs/dev/table/sqlClient.md
+++ b/docs/content.zh/docs/dev/table/sqlClient.md
@@ -201,8 +201,7 @@ Mode "embedded" (default) submits Flink jobs from the local machine.
-pyarch,--pyArchives <arg> Add python archive files for job. The
archive files will be extracted to
the working directory of python UDF
- worker. Currently only zip-format is
- supported. For each archive file, a
+ worker. For each archive file, a
target directory be specified. If the
target directory name is specified,
the archive file will be extracted to
diff --git a/docs/content/docs/deployment/cli.md b/docs/content/docs/deployment/cli.md
index eb01601..0dc198f 100644
--- a/docs/content/docs/deployment/cli.md
+++ b/docs/content/docs/deployment/cli.md
@@ -465,7 +465,7 @@ related options. Here's an overview of all the Python related options for the ac
<td><code class="highlighter-rouge">-pyarch,--pyArchives</code></td>
<td>
Add python archive files for job. The archive files will be extracted to the working directory
- of python UDF worker. Currently only zip-format is supported. For each archive file, a target directory
+ of python UDF worker. For each archive file, a target directory
be specified. If the target directory name is specified, the archive file will be extracted to a
directory with the specified name. Otherwise, the archive file will be extracted to a
directory with the same name of the archive file. The files uploaded via this option are accessible
diff --git a/docs/content/docs/dev/python/dependency_management.md b/docs/content/docs/dev/python/dependency_management.md
index c6f07bd..7ed3c1f 100644
--- a/docs/content/docs/dev/python/dependency_management.md
+++ b/docs/content/docs/dev/python/dependency_management.md
@@ -233,7 +233,8 @@ or via [command line arguments]({{< ref "docs/deployment/cli" >}}#submitting-pyf
<span class="label label-info">Note</span> If the archive file contains a Python virtual environment,
please make sure that the Python virtual environment matches the platform that the cluster is running on.
-<span class="label label-info">Note</span> Currently, only zip-format is supported, i.e. zip, jar, whl, egg, etc.
+<span class="label label-info">Note</span> Currently, only zip files (i.e., zip, jar, whl, egg, etc)
+and tar files (i.e., tar, tar.gz, tgz) are supported.
### Python interpreter
@@ -284,8 +285,9 @@ source my_env/bin/activate
```
or specify it using configuration
-[`python.client.executable`]({{< ref "docs/dev/python/python_config" >}}#python-client-executable)
-or environment variable [PYFLINK_CLIENT_EXECUTABLE]({{< ref "docs/dev/python/environment_variables" >}})
+[`python.client.executable`]({{< ref "docs/dev/python/python_config" >}}#python-client-executable),
+[command line arguments]({{< ref "docs/deployment/cli" >}}#submitting-pyflink-jobs) `-pyclientexec` or `--pyClientExecutable`,
+environment variable [PYFLINK_CLIENT_EXECUTABLE]({{< ref "docs/dev/python/environment_variables" >}})
## How to specify Python Dependencies in Java/Scala Program
diff --git a/docs/content/docs/dev/table/sqlClient.md b/docs/content/docs/dev/table/sqlClient.md
index 72d11bb..f77c60e 100644
--- a/docs/content/docs/dev/table/sqlClient.md
+++ b/docs/content/docs/dev/table/sqlClient.md
@@ -146,8 +146,7 @@ Mode "embedded" (default) submits Flink jobs from the local machine.
-pyarch,--pyArchives <arg> Add python archive files for job. The
archive files will be extracted to
the working directory of python UDF
- worker. Currently only zip-format is
- supported. For each archive file, a
+ worker. For each archive file, a
target directory be specified. If the
target directory name is specified,
the archive file will be extracted to
diff --git a/docs/layouts/shortcodes/generated/python_configuration.html b/docs/layouts/shortcodes/generated/python_configuration.html
index 27e7501..b9d0559 100644
--- a/docs/layouts/shortcodes/generated/python_configuration.html
+++ b/docs/layouts/shortcodes/generated/python_configuration.html
@@ -12,7 +12,7 @@
<td><h5>python.archives</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
- <td>Add python archive files for job. The archive files will be extracted to the working directory of python UDF worker. Currently only zip-format is supported. For each archive file, a target directory is specified. If the target directory name is specified, the archive file will be extracted to a directory with the specified name. Otherwise, the archive file will be extracted to a directory with the same name of the archive file. The files uploaded via this option are acces [...]
+ <td>Add python archive files for job. The archive files will be extracted to the working directory of python UDF worker. For each archive file, a target directory is specified. If the target directory name is specified, the archive file will be extracted to a directory with the specified name. Otherwise, the archive file will be extracted to a directory with the same name of the archive file. The files uploaded via this option are accessible via relative path. '#' could be us [...]
</tr>
<tr>
<td><h5>python.client.executable</h5></td>
diff --git a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
index 3a779b5..8d960d2 100644
--- a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
+++ b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
@@ -222,7 +222,7 @@ public class CliFrontendParser {
"pyArchives",
true,
"Add python archive files for job. The archive files will be extracted to the working directory "
- + "of python UDF worker. Currently only zip-format is supported. For each archive file, a target directory "
+ + "of python UDF worker. For each archive file, a target directory "
+ "be specified. If the target directory name is specified, the archive file will be extracted to a "
+ "directory with the specified name. Otherwise, the archive file will be extracted to a "
+ "directory with the same name of the archive file. The files uploaded via this option are accessible "
diff --git a/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java b/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
index ba1771f..de68482 100644
--- a/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
+++ b/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
@@ -113,8 +113,8 @@ public class PythonOptions {
.noDefaultValue()
.withDescription(
"Add python archive files for job. The archive files will be extracted "
- + "to the working directory of python UDF worker. Currently only zip-format is "
- + "supported. For each archive file, a target directory is specified. If the target "
+ + "to the working directory of python UDF worker. "
+ + "For each archive file, a target directory is specified. If the target "
+ "directory name is specified, the archive file will be extracted to a "
+ "directory with the specified name. Otherwise, the archive file will be extracted to "
+ "a directory with the same name of the archive file. The files uploaded via this "