-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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-20343][BUILD] Add avro dependency in core POM to resolve build failure in SBT Hadoop 2.6 master on Jenkins #17642
Conversation
cc @srowen and @vanzin. I think apparently it is a similar issue with SPARK-11538. Could you check if it makes sense? I think this is going to resolve the problem as a safe workaround. |
project/SparkBuild.scala
Outdated
@@ -448,7 +448,9 @@ object DockerIntegrationTests { | |||
*/ | |||
object DependencyOverrides { | |||
lazy val settings = Seq( | |||
dependencyOverrides += "com.google.guava" % "guava" % "14.0.1") | |||
dependencyOverrides ++= Set( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Seq
produces an error as below:
[error] .../spark/project/SparkBuild.scala:451: No implicit for Append.Values[Set[sbt.ModuleID], Seq[sbt.ModuleID]] found,
[error] so Seq[sbt.ModuleID] cannot be appended to Set[sbt.ModuleID]
[error] dependencyOverrides ++= Seq(
[error] ^
[error] one error found
Test build #75817 has finished for PR 17642 at commit
|
retest this please |
Test build #75820 has started for PR 17642 at commit |
retest this please |
Before doing this, can you instead try adding |
Test build #75821 has finished for PR 17642 at commit
|
Sure, I will. (I was just worried of a case we should revert) |
1ae57f2
to
1627bd7
Compare
1627bd7
to
a983010
Compare
Test build #75823 has finished for PR 17642 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and can't hurt, as it should be more correct. We won't know if it fixes that build until I merge though.
Thank you for your approval @srowen. |
Merged to master |
Ugh.. it seems this try was failed.. https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.6/lastBuild/console
Could I give another shot with SBT one? ( and should I revert the change back in the PR I am going to open?). |
OK, it was a decent idea. I think the change can be left in place because it's technically correct anyway. I dislike hacking the SBT build this way, but I don't have a better idea at the moment. The hack would have to be prominently documented for sure. |
I see. Sure, I will. Thank you for guiding me. |
… failure in SBT Hadoop 2.6 master on Jenkins ## What changes were proposed in this pull request? This PR proposes to add ``` <dependency> <groupId>org.apache.avro</groupId> <artifactId>avro</artifactId> </dependency> ``` in core POM to see if it resolves the build failure as below: ``` [error] /home/jenkins/workspace/spark-master-test-sbt-hadoop-2.6/core/src/main/scala/org/apache/spark/serializer/GenericAvroSerializer.scala:123: value createDatumWriter is not a member of org.apache.avro.generic.GenericData [error] writerCache.getOrElseUpdate(schema, GenericData.get.createDatumWriter(schema)) [error] ``` https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-sbt-hadoop-2.6/2770/consoleFull ## How was this patch tested? I tried many ways but I was unable to reproduce this in my local. Sean also tried the way I did but he was also unable to reproduce this. Please refer the comments in apache#17477 (comment) Author: hyukjinkwon <[email protected]> Closes apache#17642 from HyukjinKwon/SPARK-20343.
What changes were proposed in this pull request?
This PR proposes to add
in core POM to see if it resolves the build failure as below:
https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-sbt-hadoop-2.6/2770/consoleFull
How was this patch tested?
I tried many ways but I was unable to reproduce this in my local. Sean also tried the way I did but he was also unable to reproduce this.
Please refer the comments in #17477 (comment)