Skip to content

Commit

Permalink
[FLINK-15185][hive] Shade flink-hadoop-fs to use hive connectors in s…
Browse files Browse the repository at this point in the history
…tandalone mode

This closes apache#10540
  • Loading branch information
JingsongLi authored and KurtYoung committed Dec 12, 2019
1 parent 6515a79 commit 3a30e29
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions flink-connectors/flink-connector-hive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ under the License.
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-hadoop-fs</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Hadoop dependency -->
<!-- Hadoop as provided dependencies, so we can depend on them without pulling in Hadoop -->

Expand Down Expand Up @@ -683,6 +689,30 @@ under the License.
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade-flink</id>
<configuration>
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<includes combine.children="append">
<include>org.apache.flink:flink-hadoop-fs</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.apache.flink.runtime.fs.hdfs</pattern>
<shadedPattern>org.apache.flink.connectors.hive.fs.hdfs</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 3a30e29

Please sign in to comment.