Skip to content

Commit

Permalink
[FLINK-11268][release] Deploy multiple flink-shaded-hadoop2 artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Jan 10, 2019
1 parent 4adf23d commit 5fe918c
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 30 deletions.
2 changes: 1 addition & 1 deletion flink-connectors/flink-connector-filesystem/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-connectors/flink-hadoop-compatibility/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-connectors/flink-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-connectors/flink-hcatalog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-connectors/flink-orc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2-uber</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<!--
Exclusion of flink-shaded-hadoop2 not necessary, dependencies
are shaded away properly by flink-shaded-hadoop2-uber.
Expand Down
4 changes: 2 additions & 2 deletions flink-dist/src/main/assemblies/hadoop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ under the License.
<files>
<!-- copy the Hadoop uber jar -->
<file>
<source>../flink-shaded-hadoop/flink-shaded-hadoop2-uber/target/flink-shaded-hadoop2-uber-${project.version}.jar</source>
<source>../flink-shaded-hadoop/flink-shaded-hadoop2-uber/target/flink-shaded-hadoop2-uber-${project.version}-${hadoop.version}.jar</source>
<outputDirectory>lib/</outputDirectory>
<destName>flink-shaded-hadoop2-uber-${project.version}.jar</destName>
<destName>flink-shaded-hadoop2-uber-${project.version}-${hadoop.version}.jar</destName>
<fileMode>0644</fileMode>
</file>
</files>
Expand Down
2 changes: 1 addition & 1 deletion flink-end-to-end-tests/flink-bucketing-sink-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
<exclusions>
<!-- Needed for proper dependency convergence -->
Expand Down
2 changes: 1 addition & 1 deletion flink-filesystems/flink-hadoop-fs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<optional>true</optional>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-formats/flink-parquet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-formats/flink-sequence-file/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-fs-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<optional>true</optional>
</dependency>

Expand Down
14 changes: 1 addition & 13 deletions flink-shaded-hadoop/flink-shaded-hadoop2-uber/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ under the License.
<name>flink-shaded-hadoop2-uber</name>

<packaging>jar</packaging>
<version>1.8-SNAPSHOT-${hadoop.version}</version>

<!--
the only dependency of the 'flink-shaded-hadoop2' artifact, out
Expand All @@ -53,19 +54,6 @@ under the License.
<build>
<plugins>

<!--
Don't deploy this uber-jar. It is not referenced by any other artifact.
Its sole purpose is to be included in the 'flink-dist' build.
-->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<!--
Build an uber jar of the shaded-hadoop-dependency
and all its transitive dependencies
Expand Down
1 change: 1 addition & 0 deletions flink-shaded-hadoop/flink-shaded-hadoop2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ under the License.
<name>flink-shaded-hadoop2</name>

<packaging>jar</packaging>
<version>1.8-SNAPSHOT-${hadoop.version}</version>

<dependencies>

Expand Down
2 changes: 1 addition & 1 deletion flink-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-yarn-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion flink-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
<version>${project.version}-${hadoop.version}</version>
</dependency>

<dependency>
Expand Down
8 changes: 8 additions & 0 deletions tools/releasing/deploy_staging_jars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ $MVN clean deploy $COMMON_OPTIONS -Dscala-2.11
echo "Deploying Scala 2.12 version"
$MVN clean deploy $COMMON_OPTIONS -Dscala-2.12

COMMON_HADOOP_OPTIONS="-pl flink-shaded-hadoop/flink-shaded-hadoop2,flink-shaded-hadoop/flink-shaded-hadoop2-uber"

HADOOP_VERSIONS=("2.4.1" "2.6.5" "2.7.5" "2.8.3")

for i in "${!HADOOP_VERSIONS[@]}"; do
echo "Deploying flink-shaded-hadoop $HADOOP_VERSIONS[$i] version"
$MVN clean deploy $COMMON_OPTIONS $COMMON_HADOOP_OPTIONS "-Dhadoop.version=${HADOOP_VERSIONS[$i]}"
done

0 comments on commit 5fe918c

Please sign in to comment.