Skip to content

Commit 3f3ceda

Browse files
committed
Use Iceberg AWS bundle instead of standalone AWS SDK JARs (#243)
1 parent c952761 commit 3f3ceda

File tree

3 files changed

+17
-31
lines changed

3 files changed

+17
-31
lines changed

flink-sql-runner/pom.xml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
<scope>provided</scope>
7373
</dependency>
7474

75+
<!-- Will be shipped as Flink lib -->
76+
<dependency>
77+
<groupId>org.apache.iceberg</groupId>
78+
<artifactId>iceberg-aws-bundle</artifactId>
79+
<version>${iceberg.version}</version>
80+
<scope>provided</scope>
81+
</dependency>
82+
7583
<!-- Required for Iceberg to work -->
7684
<dependency>
7785
<groupId>org.apache.hadoop</groupId>
@@ -90,28 +98,6 @@
9098
</exclusions>
9199
</dependency>
92100

93-
<!-- AWS SDK v2 required for Iceberg S3FileIO -->
94-
<dependency>
95-
<groupId>software.amazon.awssdk</groupId>
96-
<artifactId>s3</artifactId>
97-
<version>${aws.sdk.version}</version>
98-
<scope>provided</scope>
99-
</dependency>
100-
101-
<dependency>
102-
<groupId>software.amazon.awssdk</groupId>
103-
<artifactId>sts</artifactId>
104-
<version>${aws.sdk.version}</version>
105-
<scope>provided</scope>
106-
</dependency>
107-
108-
<dependency>
109-
<groupId>software.amazon.awssdk</groupId>
110-
<artifactId>url-connection-client</artifactId>
111-
<version>${aws.sdk.version}</version>
112-
<scope>provided</scope>
113-
</dependency>
114-
115101
<!-- Add logging framework, to produce console output when running in the IDE. -->
116102
<!-- These dependencies are excluded from the application JAR by default. -->
117103
<dependency>
@@ -462,7 +448,7 @@
462448
</executions>
463449
</plugin>
464450

465-
<!-- Copying UDF/SystemFunction JARs -->
451+
<!-- Copying S3, Iceberg, UDF JARs -->
466452
<plugin>
467453
<groupId>org.apache.maven.plugins</groupId>
468454
<artifactId>maven-dependency-plugin</artifactId>
@@ -493,26 +479,27 @@
493479
</configuration>
494480
</execution>
495481
<execution>
496-
<id>copy-hdfs-client-for-iceberg</id>
482+
<id>copy-iceberg-aws-bundle</id>
497483
<goals>
498484
<goal>copy-dependencies</goal>
499485
</goals>
500486
<phase>process-resources</phase>
501487
<configuration>
502-
<includeGroupIds>org.apache.hadoop</includeGroupIds>
503-
<includeArtifactIds>hadoop-hdfs-client</includeArtifactIds>
488+
<includeGroupIds>org.apache.iceberg</includeGroupIds>
489+
<includeArtifactIds>iceberg-aws-bundle</includeArtifactIds>
504490
<outputDirectory>${project.build.directory}</outputDirectory>
505491
</configuration>
506492
</execution>
507493
<execution>
508-
<id>copy-aws-sdk-for-iceberg</id>
494+
<id>copy-hdfs-client-for-iceberg</id>
509495
<goals>
510496
<goal>copy-dependencies</goal>
511497
</goals>
512498
<phase>process-resources</phase>
513499
<configuration>
514-
<includeGroupIds>software.amazon.awssdk</includeGroupIds>
515-
<outputDirectory>${project.build.directory}/aws-sdk</outputDirectory>
500+
<includeGroupIds>org.apache.hadoop</includeGroupIds>
501+
<includeArtifactIds>hadoop-hdfs-client</includeArtifactIds>
502+
<outputDirectory>${project.build.directory}</outputDirectory>
516503
</configuration>
517504
</execution>
518505
<execution>

flink-sql-runner/src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN mkdir -p /opt/flink/plugins/flink-sql-runner
2121
COPY flink-s3-fs-hadoop-*.jar /opt/flink/lib
2222
COPY hadoop-hdfs-client-*.jar /opt/flink/lib
2323
COPY iceberg-flink-runtime-*.jar /opt/flink/lib
24-
COPY aws-sdk/*.jar /opt/flink/lib/
24+
COPY iceberg-aws-bundle-*.jar /opt/flink/lib
2525
COPY stdlib-utils-*.jar /opt/flink/lib
2626
COPY flink-sql-runner.uber.jar /opt/flink/plugins/flink-sql-runner
2727
COPY entrypoint.sh /entrypoint.sh

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
<assertj.version>3.27.4</assertj.version>
9595
<auto.service.version>1.1.1</auto.service.version>
9696
<awaitility.version>4.3.0</awaitility.version>
97-
<aws.sdk.version>2.20.160</aws.sdk.version>
9897
<commons-exec.version>1.5.0</commons-exec.version>
9998
<commons-math3.version>3.6.1</commons-math3.version>
10099
<feign.version>13.5</feign.version>

0 commit comments

Comments
 (0)