This is an automated email from the ASF dual-hosted git repository. jark 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 0313c40 [FLINK-24221][docs-zh] Translate "JAR Statements" page of "SQL" into Chinese (#17225) 0313c40 is described below commit 0313c40260d7ba230ef0805ce61865659e57495d Author: hapihu <w.gh...@qq.com> AuthorDate: Mon Sep 13 18:13:57 2021 +0800 [FLINK-24221][docs-zh] Translate "JAR Statements" page of "SQL" into Chinese (#17225) --- docs/content.zh/docs/dev/table/sql/jar.md | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/docs/content.zh/docs/dev/table/sql/jar.md b/docs/content.zh/docs/dev/table/sql/jar.md index ea7b0fc..e3f81f0 100644 --- a/docs/content.zh/docs/dev/table/sql/jar.md +++ b/docs/content.zh/docs/dev/table/sql/jar.md @@ -24,25 +24,27 @@ specific language governing permissions and limitations under the License. --> -# JAR Statements +<a name="jar-statements"></a> -JAR statements are used to add user jars into the classpath or remove user jars from the classpath -or show added jars in the classpath in the runtime. +# JAR 语句 -Flink SQL supports the following JAR statements for now: +JAR 语句用于将用户 jar 添加到 classpath、或将用户 jar 从 classpath 中删除或展示运行时 classpath 中添加的 jar。 + +目前 Flink SQL 支持以下 JAR 语句: - ADD JAR - REMOVE JAR - SHOW JARS -<span class="label label-danger">Attention</span> JAR statements only work in the [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}}). +<span class="label label-danger">注意</span> JAR 语句仅适用于 [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}})。 +<a name="run-a-jar-statement"></a> -## Run a JAR statement +## 执行 JAR 语句 {{< tabs "add jar statement" >}} {{< tab "SQL CLI" >}} -The following examples show how to run `JAR` statements in [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}}). +以下示例展示了如何在 [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}}) 中运行 JAR 语句。 {{< /tab >}} {{< /tabs >}} @@ -62,13 +64,17 @@ Flink SQL> REMOVE JAR '/path/hello.jar'; {{< /tab >}} {{< /tabs >}} +<a name="add-jar"></a> + ## ADD JAR ```sql ADD JAR '<path_to_filename>.jar' ``` -Currently it only supports to add the local jar into the session classloader. +目前只支持将本地 jar 添加到会话类类加载器(session classloader)中。 + +<a name="remove-jar"></a> ## REMOVE JAR @@ -76,7 +82,9 @@ Currently it only supports to add the local jar into the session classloader. REMOVE JAR '<path_to_filename>.jar' ``` -Currently it only supports to remove the jar that is added by the [`ADD JAR`](#add-jar) statements. +目前只支持删除 [`ADD JAR`](#add-jar) 语句添加的 jar。 + +<a name="show-jars"></a> ## SHOW JARS @@ -84,6 +92,6 @@ Currently it only supports to remove the jar that is added by the [`ADD JAR`](#a SHOW JARS ``` -Show all added jars in the session classloader which are added by [`ADD JAR`](#add-jar) statements. +展示会话类类加载器(session classloader)中所有基于 [`ADD JAR`](#add-jar) 语句添加的 jar。 {{< top >}}