This is an automated email from the ASF dual-hosted git repository. jingzhang 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 1d347e66eb7 [FLINK-27086][doc] Add a QA about how to handle exception when use hive parser in hive dialect document (#19373) 1d347e66eb7 is described below commit 1d347e66eb799646b28100430b0afa65a56d844b Author: Jing Zhang <beyond1...@126.com> AuthorDate: Thu Apr 7 15:16:44 2022 +0800 [FLINK-27086][doc] Add a QA about how to handle exception when use hive parser in hive dialect document (#19373) --- .../docs/connectors/table/hive/hive_dialect.md | 3 +++ .../content/docs/connectors/table/hive/hive_dialect.md | 2 ++ docs/static/fig/hive_parser_load_exception.png | Bin 0 -> 212874 bytes 3 files changed, 5 insertions(+) diff --git a/docs/content.zh/docs/connectors/table/hive/hive_dialect.md b/docs/content.zh/docs/connectors/table/hive/hive_dialect.md index 3101f0db990..d591457ce70 100644 --- a/docs/content.zh/docs/connectors/table/hive/hive_dialect.md +++ b/docs/content.zh/docs/connectors/table/hive/hive_dialect.md @@ -416,3 +416,6 @@ Flink SQL> select * from tbl cluster by key; -- run cluster by - 虽然所有 Hive 版本支持相同的语法,但是一些特定的功能是否可用仍取决于你使用的[Hive 版本]({{< ref "docs/connectors/table/hive/overview" >}}#支持的hive版本)。例如,更新数据库位置 只在 Hive-2.4.0 或更高版本支持。 - 执行 DML 和 DQL 时应该使用 [HiveModule]({{< ref "docs/connectors/table/hive/hive_functions" >}}#use-hive-built-in-functions-via-hivemodule) 。 +- 从 Flink 1.15版本开始,在使用 Hive 方言抛出以下异常时,请尝试用 opt 目录下的 flink-table-planner_2.12 jar 包来替换 lib 目录下的 flink-table-planner-loader jar 包。具体原因请参考 [FLINK-25128](https://issues.apache.org/jira/browse/FLINK-25128)。 + {{<img alt="error" width="80%" src="/fig/hive_parser_load_exception.png">}} + diff --git a/docs/content/docs/connectors/table/hive/hive_dialect.md b/docs/content/docs/connectors/table/hive/hive_dialect.md index 38c0845b2e6..f8d2e675cbb 100644 --- a/docs/content/docs/connectors/table/hive/hive_dialect.md +++ b/docs/content/docs/connectors/table/hive/hive_dialect.md @@ -430,3 +430,5 @@ The following are some precautions for using the Hive dialect. location is only supported in Hive-2.4.0 or later. - Use [HiveModule]({{< ref "docs/connectors/table/hive/hive_functions" >}}#use-hive-built-in-functions-via-hivemodule) to run DML and DQL. +- Since Flink 1.15 you need to swap flink-table-planner-loader located in /lib with flink-table-planner_2.12 located in /opt to avoid the following exception. Please see [FLINK-25128](https://issues.apache.org/jira/browse/FLINK-25128) for more details. + {{<img alt="error" width="80%" src="/fig/hive_parser_load_exception.png">}} diff --git a/docs/static/fig/hive_parser_load_exception.png b/docs/static/fig/hive_parser_load_exception.png new file mode 100644 index 00000000000..4d7fc3cf71e Binary files /dev/null and b/docs/static/fig/hive_parser_load_exception.png differ