You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by lz...@apache.org on 2020/11/24 02:39:24 UTC

[flink] branch master updated: [FLINK-19630][hive][doc] Make bundled hive jar the recommended way to add dependencies

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/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 66e90f2  [FLINK-19630][hive][doc] Make bundled hive jar the recommended way to add dependencies
66e90f2 is described below

commit 66e90f2b3fb7a452744d1ee88bcee6e20151b584
Author: Rui Li <li...@apache.org>
AuthorDate: Tue Nov 24 10:35:47 2020 +0800

    [FLINK-19630][hive][doc] Make bundled hive jar the recommended way to add dependencies
    
    This closes #14131
---
 docs/dev/table/hive/index.md    | 2 ++
 docs/dev/table/hive/index.zh.md | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/docs/dev/table/hive/index.md b/docs/dev/table/hive/index.md
index 7778982..c8f4f7a 100644
--- a/docs/dev/table/hive/index.md
+++ b/docs/dev/table/hive/index.md
@@ -97,6 +97,8 @@ Apache Hive is built on Hadoop, so you need Hadoop dependency first, please refe
 
 There are two ways to add Hive dependencies. First is to use Flink's bundled Hive jars. You can choose a bundled Hive jar according to the version of the metastore you use. Second is to add each of the required jars separately. The second way can be useful if the Hive version you're using is not listed here.
 
+**NOTE**: the recommended way to add dependency is to use a bundled jar. Separate jars should be used only if bundled jars don't meet your needs.
+
 #### Using bundled hive jar
 
 The following tables list all available bundled hive jars. You can pick one to the `/lib/` directory in Flink distribution.
diff --git a/docs/dev/table/hive/index.zh.md b/docs/dev/table/hive/index.zh.md
index c7dc4c6..048de62 100644
--- a/docs/dev/table/hive/index.zh.md
+++ b/docs/dev/table/hive/index.zh.md
@@ -96,6 +96,8 @@ Apache Hive 是基于 Hadoop 之上构建的, 首先您需要 Hadoop 的依赖
 
 有两种添加 Hive 依赖项的方法。第一种是使用 Flink 提供的 Hive Jar包。您可以根据使用的 Metastore 的版本来选择对应的 Hive jar。第二个方式是分别添加每个所需的 jar 包。如果您使用的 Hive 版本尚未在此处列出,则第二种方法会更适合。
 
+**注意**:建议您优先使用 Flink 提供的 Hive jar 包。仅在 Flink 提供的 Hive jar 不满足您的需求时,再考虑使用分开添加 jar 包的方式。
+
 #### 使用 Flink 提供的 Hive jar
 
 下表列出了所有可用的 Hive jar。您可以选择一个并放在 Flink 发行版的`/lib/` 目录中。