Skip to content

Commit

Permalink
[FLINK-27086][doc] Add a QA about how to handle exception when use hi…
Browse files Browse the repository at this point in the history
…ve parser in hive dialect document (apache#19373)
  • Loading branch information
beyond1920 authored Apr 7, 2022
1 parent 3ec3868 commit 1d347e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/content.zh/docs/connectors/table/hive/hive_dialect.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">}}
2 changes: 2 additions & 0 deletions docs/content/docs/connectors/table/hive/hive_dialect.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">}}
Binary file added docs/static/fig/hive_parser_load_exception.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d347e6

Please sign in to comment.