[ 
https://issues.apache.org/jira/browse/FLINK-13833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914286#comment-16914286
 ] 

Qi Kang commented on FLINK-13833:
---------------------------------

[~Zentol] Sorry for the inconvenience, I will try to make it a bit clearer.
 # The artifact "flink-connector-hive__2.11" has 2 underscores before the Scala 
binary version.
 # The artifact "flink-hadoop-compatibility-1.9.0" could not be found in Maven 
repo. Replacing the "-1.9.0" suffix with Scala binary version "_2.11" and it's 
all right.
 # The artifact "flink-shaded-hadoop-2-uber-2.6.5-1.9.0" / 
"flink-shaded-hadoop-2-uber-2.7.5-1.9.0" could not be found in Maven repo. 
According to former versions, we should just use "flink-shaded-hadoop-2-uber" 
as artifact ID, and the version number should be prefixed with Hadoop version, 
like "2.6.5-7.0".

The original code and corrections (written in comments) are listed as below.
{code:java}
<dependency>
  <groupId>org.apache.flink</groupId>
  <artifactId>flink-connector-hive__2.11</artifactId>
  <!-- <artifactId>flink-connector-hive_2.11</artifactId> -->
  <version>1.9.0</version>
  <scope>provided</scope>
</dependency>

<dependency>
  <groupId>org.apache.flink</groupId>
  <artifactId>flink-hadoop-compatibility-1.9.0</artifactId>
  <!-- <artifactId>flink-hadoop-compatibility_2.11</artifactId> -->
  <version>1.9.0</version>
  <scope>provided</scope>
</dependency>

<dependency>
  <groupId>org.apache.flink</groupId>
  <artifactId>flink-shaded-hadoop-2-uber-2.6.5-1.9.0</artifactId>
  <!-- <artifactId>flink-shaded-hadoop-2-uber</artifactId> -->
  <version>1.9.0</version>
  <!-- <version>2.6.5-7.0</version> -->
  <scope>provided</scope>
</dependency>{code}
 

> Incorrect Maven dependencies for Flink-Hive connector
> -----------------------------------------------------
>
>                 Key: FLINK-13833
>                 URL: https://issues.apache.org/jira/browse/FLINK-13833
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.9.0
>            Reporter: Qi Kang
>            Priority: Major
>
> See 
> [https://ci.apache.org/projects/flink/flink-docs-release-1.9/dev/table/hive/]
> The Maven artifact IDs in the dependencies snippet are somewhat wrong, thus 
> cannot be resolved. According to my finding in the repository, they should be 
> corrected as follows.
> {code:java}
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-connector-hive_2.11</artifactId>
>     <version>1.9.0</version>
>     <scope>provided</scope>
> </dependency>
> <!-- Hadoop Dependencies -->
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-hadoop-compatibility_2.11</artifactId>
>     <version>1.9.0</version>
>     <scope>provided</scope>
> </dependency>
> <!-- Hive 1.2.1 is built with Hadoop 2.6.0. We pick 2.6.5 which 
> flink-shaded-hadoop is pre-built with, but users can pick their own hadoop 
> version, as long as it's compatible with Hadoop 2.6.0 -->
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-shaded-hadoop-2-uber</artifactId>
>     <version>2.6.5-7.0</version>
>     <scope>provided</scope>
> <dependency>{code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to