GitHub user steveloughran opened a pull request:
https://github.com/apache/spark/pull/11449
[SPARK-13599] [BUILD] remove transitive groovy dependencies from Hive
## What changes were proposed in this pull request?
Modifies the dependency declarations of the all the hive artifacts, to
explicitly exclude the groovy-all JAR.
This stops the groovy classes *and everything else in that uber-JAR* from
getting into spark-assembly JAR.
## How was this patch tested?
1. Pre-patch build was made: `mvn clean install
-Pyarn,hive,hive-thriftserver`
1. spark-assembly expanded, observed to have the org.codehaus.groovy
packages and JARs
1. A maven dependency tree was created `mvn dependency:tree
-Pyarn,hive,hive-thriftserver -Dverbose > target/dependencies.txt`
1. This text file examined to confirm that groovy was being imported as a
dependency of `org.spark-project.hive`
1. Patch applied
1. Repeated step1: clean build of project with `
-Pyarn,hive,hive-thriftserver` set
1. Examined created spark-assembly, verified no org.codehaus packages
1. Verified that the maven dependency tree no longer references groovy
Note also that the size of the assembly JAR was 181628646 bytes before this
patch, 166318515 after â15MB smaller. That's a good metric of things being
excluded
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/steveloughran/spark
fixes/SPARK-13599-groovy-dependency
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11449.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11449
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]