joseluisll commented on PR #8943: URL: https://github.com/apache/hadoop/pull/8943#issuecomment-6831385630
Following up on @pan3793’s pruning question with data. I extended the HADOOP-20078 prototype with a dry-run “unused jar” scan. It follows class references from Hadoop’s own jars through the shipped jars: constant pools, string constants, META-INF/services and config files. It’s conservative, so any reference counts as use. On the official 3.5.0 tarball, netty-all brings 31 Netty artifacts into share/hadoop/hdfs/lib. 11 of them are never referenced by anything in the distribution: netty-codec-haproxy, netty-codec-memcache, netty-codec-mqtt, netty-codec-redis, netty-codec-smtp, netty-codec-stomp, netty-codec-xml, netty-handler-ssl-ocsp, netty-transport-rxtx, netty-transport-sctp, netty-transport-udt The YARN application catalog WAR repeats the same set, plus codec-http2, codec-socks and handler-proxy. Trunk (4.1.137) gives the same result. What is used: buffer, codec, codec-http, codec-http2, common, handler, resolver, transport, transport-classes-epoll, transport-native-unix-common. A stricter, class-level analysis also finds codec-dns, codec-socks, handler-proxy and resolver-dns unused. The native classifier jars (epoll, kqueue, macOS DNS) are loaded by name, so they need a human call. So replacing netty-all with explicit modules looks like a safe way to prune. Two caveats: - share/hadoop/*/lib is also the classpath of user applications, so it may need a release note. - 4.2 splits netty-codec into new modules, so the list should be re-checked on this PR’s build. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
