Hello Joe McDonnell, Michael Smith, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25277

to look at the new patch set (#4).

Change subject: IMPALA-15722: Optimize impala-minimal-s3a-aws-sdk JAR 
dependencies after upgrade to Hadoop 3.4.x
......................................................................

IMPALA-15722: Optimize impala-minimal-s3a-aws-sdk JAR dependencies after 
upgrade to Hadoop 3.4.x

The impala-minimal-s3a-aws-sdk module is designed to produce a minimal
shaded JAR containing only essential AWS SDK classes to reduce the size
of Impala Docker images.

With the upgrade to Hadoop 3.4.x, the underlying hadoop-aws dependency
transitioned to AWS SDK v2 (software.amazon.awssdk:bundle). However,
fe/pom.xml and java/executor-deps/pom.xml previously only excluded the
AWS SDK v1 bundle (com.amazonaws:aws-java-sdk-bundle) under
hadoop-cloud-storage. Consequently, the unshaded AWS SDK v2 bundle
(bundle-2.49.6.jar, ~686 MB) was pulled in as a transitive dependency
and copied directly into fe/target/dependency/. Furthermore,
shaded-deps/s3a-aws-sdk/pom.xml lacked shading rules and service-level
exclusions for AWS SDK v2.

This patch addresses the issue with the following changes:
- Exclude software.amazon.awssdk:bundle under hadoop-cloud-storage in
  both fe/pom.xml and java/executor-deps/pom.xml.
- Include software.amazon.awssdk:bundle in the artifactSet of
  java/shaded-deps/s3a-aws-sdk/pom.xml.
- Add comprehensive exclusion filters for unused AWS SDK v2 services,
  preserving only the services required by hadoop-aws and Ranger
  (s3, kms, sts, m2, s3control).
- Exclude models/**, io/netty/** for AWS SDK v1.

Results:
- bundle-2.49.6.jar is no longer present in fe/target/dependency/.
- The shaded impala-minimal-s3a-aws-sdk.jar size is reduced to ~39 MB,
  which is approximately 6% of the original AWS SDK v2 bundle size.
- mvn dependency:tree confirms that software.amazon.awssdk:bundle is
  successfully removed from the fe dependency tree.

Testing:
- S3 core tests pass
- Ran mvn dependency:tree to verify the transitive bundle exclusion.
- Verified that fe/target/dependency/ does not contain bundle-2.49.6.jar.

Change-Id: I967133b8c5602a297b1d1a40affc2fa85e27248c
---
M fe/pom.xml
M java/executor-deps/pom.xml
M java/shaded-deps/s3a-aws-sdk/pom.xml
3 files changed, 713 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/25277/4
--
To view, visit https://gerrit.cloudera.org/25277
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I967133b8c5602a297b1d1a40affc2fa85e27248c
Gerrit-Change-Number: 25277
Gerrit-PatchSet: 4
Gerrit-Owner: Jiyoung Yoo <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>

Reply via email to