Joe McDonnell has posted comments on this change. ( https://gerrit.cloudera.org/25277 )
Change subject: IMPALA-15722: Optimize impala-minimal-s3a-aws-sdk JAR dependencies after upgrade to Hadoop 3.4.x ...................................................................... Patch Set 3: (2 comments) It will be great to get this done. A couple nits. I think we still have some room to make it even smaller. https://gerrit.cloudera.org/#/c/25277/3/java/shaded-deps/s3a-aws-sdk/pom.xml File java/shaded-deps/s3a-aws-sdk/pom.xml: https://gerrit.cloudera.org/#/c/25277/3/java/shaded-deps/s3a-aws-sdk/pom.xml@65 PS3, Line 65: <artifact>com.amazonaws:aws-java-sdk-bundle</artifact> For the v1 jar, there is a models/ directory with a bunch of JSON files. In my experience, those are not needed at runtime, and we can exclude them as well to save more space. i.e. <exclude>models/**</exclude> That's worth another 87MB off the final jar. https://gerrit.cloudera.org/#/c/25277/3/java/shaded-deps/s3a-aws-sdk/pom.xml@446 PS3, Line 446: <excludes> How are we generating this list? When I unpack the shaded jar, I see a lot of services in the software/amazon/awssdk/services/ directory that seem unnecessary (e.g. kinesisvideoarchivedmedia or partnercentralrevenuemeasurement). An old review (https://gerrit.cloudera.org/#/c/21555/) has a prototype for this that includes a basic script to generate this list. It needs a few adjustments to use your desired allowlist, but it can help us be comprehensive here. (Or ask AI to generate a script that applies an allow-list) -- 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: comment Gerrit-Change-Id: I967133b8c5602a297b1d1a40affc2fa85e27248c Gerrit-Change-Number: 25277 Gerrit-PatchSet: 3 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]> Gerrit-Comment-Date: Wed, 04 Nov 2026 23:40:49 +0000 Gerrit-HasComments: Yes
