Skip to content

Commit 25d4a85

Browse files
authored
HIVE-29305 (addendum): Exclude AWS SDK v2 from hive-exec (#6398)
* HIVE-29305 (addendum): Exclude AWS SDK v2 from hive-exec * Add a test dependency * Move comment * Upgrade AWS SDK v2 * Mark provided
1 parent 8d63caf commit 25d4a85

6 files changed

Lines changed: 28 additions & 6 deletions

File tree

itests/test-docker/k8s/hive-metastore/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
- |
4141
apt-get update
4242
apt-get install -y --no-install-recommends ca-certificates wget
43-
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.26.19/bundle-2.26.19.jar -P /tmp/ext-jars
43+
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.42.25/bundle-2.42.25.jar -P /tmp/ext-jars
4444
volumeMounts:
4545
- name: ext-jars
4646
mountPath: /tmp/ext-jars

itests/test-docker/k8s/hive/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
- |
4141
apt-get update
4242
apt-get install -y --no-install-recommends ca-certificates wget
43-
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.26.19/bundle-2.26.19.jar -P /tmp/ext-jars
43+
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.42.25/bundle-2.42.25.jar -P /tmp/ext-jars
4444
volumeMounts:
4545
- name: ext-jars
4646
mountPath: /tmp/ext-jars

packaging/src/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ exit
342342
**Disclaimer:**
343343
Hadoop **3.4.1** requires **AWS SDK v2**.
344344
```shell
345-
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.26.19/bundle-2.26.19.jar -P jars/
345+
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.42.25/bundle-2.42.25.jar -P jars/
346346
```
347347

348348
2. Set the following environment variables:

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@
232232
<datasketches.version>2.0.0</datasketches.version>
233233
<spotbugs.version>4.8.6</spotbugs.version>
234234
<validation-api.version>1.1.0.Final</validation-api.version>
235-
<aws-secretsmanager-caching.version>2.1.1</aws-secretsmanager-caching.version>
235+
<aws-java-sdk.version>2.42.25</aws-java-sdk.version>
236+
<aws-secretsmanager-caching.version>2.2.0</aws-secretsmanager-caching.version>
236237
<jansi.version>2.4.0</jansi.version>
237238
<!-- If upgrading, upgrade atlas as well in ql/pom.xml, which brings in some springframework dependencies transitively -->
238239
<spring.version>5.3.39</spring.version>
@@ -271,10 +272,26 @@
271272
<dependencyManagement>
272273
<dependencies>
273274
<!-- dependencies are always listed in sorted order by groupId, artifactId -->
275+
<dependency>
276+
<groupId>software.amazon.awssdk</groupId>
277+
<artifactId>bundle</artifactId>
278+
<version>${aws-java-sdk.version}</version>
279+
<scope>provided</scope>
280+
</dependency>
274281
<dependency>
275282
<groupId>com.amazonaws.secretsmanager</groupId>
276283
<artifactId>aws-secretsmanager-caching-java</artifactId>
277284
<version>${aws-secretsmanager-caching.version}</version>
285+
<exclusions>
286+
<exclusion>
287+
<groupId>software.amazon.awssdk</groupId>
288+
<artifactId>aws-crt-client</artifactId>
289+
</exclusion>
290+
<exclusion>
291+
<groupId>software.amazon.awssdk</groupId>
292+
<artifactId>secretsmanager</artifactId>
293+
</exclusion>
294+
</exclusions>
278295
</dependency>
279296
<dependency>
280297
<groupId>com.esotericsoftware.kryo</groupId>

ql/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
<artifactId>hive-storage-api</artifactId>
168168
</dependency>
169169
<!-- inter-project -->
170+
<dependency>
171+
<groupId>software.amazon.awssdk</groupId>
172+
<artifactId>bundle</artifactId>
173+
<scope>test</scope>
174+
</dependency>
170175
<dependency>
171176
<groupId>com.amazonaws.secretsmanager</groupId>
172177
<artifactId>aws-secretsmanager-caching-java</artifactId>

standalone-metastore/packaging/src/docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ change the `POSTGRES_LOCAL_PATH` to the path of the downloaded jar.
138138
**Disclaimer:**
139139
Hadoop **3.4.1** requires **AWS SDK v2**.
140140
```shell
141-
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.26.19/bundle-2.26.19.jar -P jars/
141+
wget https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.42.25/bundle-2.42.25.jar -P jars/
142142
```
143143

144144
2. Set the following environment variables:
@@ -168,4 +168,4 @@ Volumes:
168168
To stop/remove them all,
169169
```shell
170170
docker compose down
171-
```
171+
```

0 commit comments

Comments
 (0)