Skip to content

Commit 31f9a71

Browse files
committed
HADOOP-19083. hadoop binaries aws sdk unless -Pawssdk builds
New profile awssdk must be set for hadoop-tools-dist to include the AWS SDK (so cuts binary size in half) This is not yet documented Change-Id: I1d7808d82f172e861348af1ab7c6bae46590dcb9
1 parent d1daf26 commit 31f9a71

File tree

1 file changed

+19
-0
lines changed
  • hadoop-tools/hadoop-tools-dist

1 file changed

+19
-0
lines changed

hadoop-tools/hadoop-tools-dist/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
<artifactId>hadoop-aws</artifactId>
9898
<scope>compile</scope>
9999
<version>${project.version}</version>
100+
<exclusions>
101+
<exclusion>
102+
<groupId>software.amazon.awssdk</groupId>
103+
<artifactId>bundle</artifactId>
104+
</exclusion>
105+
</exclusions>
100106
</dependency>
101107
<dependency>
102108
<groupId>org.apache.hadoop</groupId>
@@ -197,5 +203,18 @@
197203
</plugins>
198204
</build>
199205
</profile>
206+
207+
<!-- if this profile is set, the full AWS SDK is included in the tools/lib
208+
directory -->
209+
<profile>
210+
<id>awssdk</id>
211+
<dependencies>
212+
<dependency>
213+
<groupId>software.amazon.awssdk</groupId>
214+
<artifactId>bundle</artifactId>
215+
<scope>compile</scope>
216+
</dependency>
217+
</dependencies>
218+
</profile>
200219
</profiles>
201220
</project>

0 commit comments

Comments
 (0)