Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13599] [BUILD] remove transitive groovy dependencies from spark-hive and spark-hiveserver (branch 1.6) #11473

Conversation

steveloughran
Copy link
Contributor

What changes were proposed in this pull request?

This is just the patch of #11449 cherry picked to branch-1.6; the enforcer and dep/ diffs are cut

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
  2. spark-assembly expanded, observed to have the org.codehaus.groovy packages and JARs
  3. A maven dependency tree was created mvn dependency:tree -Pyarn,hive,hive-thriftserver -Dverbose > target/dependencies.txt
  4. This text file examined to confirm that groovy was being imported as a dependency of org.spark-project.hive
  5. Patch applied
  6. Repeated step1: clean build of project with -Pyarn,hive,hive-thriftserver set
  7. Examined created spark-assembly, verified no org.codehaus packages
  8. Verified that the maven dependency tree no longer references groovy

The master version updates the dependency files and an enforcer rule to keep groovy out; this patch strips it out.

@SparkQA
Copy link

SparkQA commented Mar 2, 2016

Test build #52327 has finished for PR 11473 at commit f226151.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Mar 3, 2016

As I asked in #11449 -- what's the reason to justify backporting this? Usually we don't do dependency changes in a maintenance release.

@rxin
Copy link
Contributor

rxin commented Mar 3, 2016

Can you update the pull request description? The current one isn't great as is.

@steveloughran steveloughran changed the title [SPARK-13599] [BUILD] remove transitive groovy dependencies from Hive [SPARK-13599] [BUILD] remove transitive groovy dependencies from spark-hive and spark-hiveserver Mar 3, 2016
@steveloughran steveloughran changed the title [SPARK-13599] [BUILD] remove transitive groovy dependencies from spark-hive and spark-hiveserver [SPARK-13599] [BUILD] remove transitive groovy dependencies from spark-hive and spark-hiveserver (branch 1.6) Mar 3, 2016
@srowen
Copy link
Member

srowen commented Mar 7, 2016

@steveloughran if you'll update this to match #11449 (it has to have dependncy files update to pass) I'll merge

@steveloughran
Copy link
Contributor Author

will do

@SparkQA
Copy link

SparkQA commented Mar 7, 2016

Test build #52554 has finished for PR 11473 at commit 26ed0f5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Mar 7, 2016

OK it's merged. You can close this PR manually now.

asfgit pushed a commit that referenced this pull request Mar 7, 2016
…-hive and spark-hiveserver (branch 1.6)

## What changes were proposed in this pull request?

This is just the patch of #11449 cherry picked to branch-1.6; the enforcer and dep/ diffs are cut

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

The `master` version updates the dependency files and an enforcer rule to keep groovy out; this patch strips it out.

Author: Steve Loughran <stevel@hortonworks.com>

Closes #11473 from steveloughran/fixes/SPARK-13599-groovy+branch-1.6.
@steveloughran steveloughran deleted the fixes/SPARK-13599-groovy+branch-1.6 branch March 8, 2016 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants