Jiyoung Yoo has uploaded this change for review. ( https://gerrit.cloudera.org/25277
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). 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 ~265 MB, which is approximately one-third of the AWS SDK v2 bundle size. - mvn dependency:tree confirms that software.amazon.awssdk:bundle is successfully removed from the fe dependency tree. Testing: - Ran mvn dependency:tree to verify the transitive bundle exclusion. - Verified that fe/target/dependency/ does not contain bundle-2.49.6.jar. - Successfully executed DDL and DML queries in an Impala cluster configured with S3 as the default filesystem. 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, 664 insertions(+), 4 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/25277/1 -- 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: newchange Gerrit-Change-Id: I967133b8c5602a297b1d1a40affc2fa85e27248c Gerrit-Change-Number: 25277 Gerrit-PatchSet: 1 Gerrit-Owner: Jiyoung Yoo <[email protected]>
