You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/03/26 01:53:08 UTC

[spark] branch branch-2.4 updated: [SPARK-31258][BUILD] Pin the avro version in SBT

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 916a25a  [SPARK-31258][BUILD] Pin the avro version in SBT
916a25a is described below

commit 916a25a46bca7196416372bacc3fc260a6ef658f
Author: Kent Yao <ya...@hotmail.com>
AuthorDate: Thu Mar 26 10:48:11 2020 +0900

    [SPARK-31258][BUILD] Pin the avro version in SBT
    
    add arvo dep in SparkBuild
    
    fix sbt unidoc like https://github.com/apache/spark/pull/28017#issuecomment-603828597
    ```scala
    [warn] Multiple main classes detected.  Run 'show discoveredMainClasses' to see the list
    [warn] Multiple main classes detected.  Run 'show discoveredMainClasses' to see the list
    [info] Main Scala API documentation to /home/jenkins/workspace/SparkPullRequestBuilder6/target/scala-2.12/unidoc...
    [info] Main Java API documentation to /home/jenkins/workspace/SparkPullRequestBuilder6/target/javaunidoc...
    [error] /home/jenkins/workspace/SparkPullRequestBuilder6/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]                                                         ^
    [info] No documentation generated with unsuccessful compiler run
    [error] one error found
    ```
    
    no
    
    pass jenkins
    and verify manually with `sbt dependencyTree`
    ```scala
     kentyaohulk  ~/spark   dep  build/sbt dependencyTree | grep avro | grep -v Resolving
    [info]   +-org.apache.avro:avro-mapred:1.8.2
    [info]   | +-org.apache.avro:avro-ipc:1.8.2
    [info]   | | +-org.apache.avro:avro:1.8.2
    [info]   +-org.apache.avro:avro:1.8.2
    [info]   | | +-org.apache.avro:avro:1.8.2
    [info] org.apache.spark:spark-avro_2.12:3.1.0-SNAPSHOT [S]
    [info]   | | | +-org.apache.avro:avro-mapred:1.8.2
    [info]   | | | | +-org.apache.avro:avro-ipc:1.8.2
    [info]   | | | | | +-org.apache.avro:avro:1.8.2
    [info]   | | | +-org.apache.avro:avro:1.8.2
    [info]   | | | | | +-org.apache.avro:avro:1.8.2
    ```
    
    Closes #28020 from yaooqinn/dep.
    
    Authored-by: Kent Yao <ya...@hotmail.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit 336621e277794ab2e6e917391a928ec662498fcf)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 project/SparkBuild.scala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 7ee079c..4578857 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -554,7 +554,8 @@ object DependencyOverrides {
     dependencyOverrides += "com.google.guava" % "guava" % "14.0.1",
     dependencyOverrides += "commons-io" % "commons-io" % "2.4",
     dependencyOverrides += "com.fasterxml.jackson.core"  % "jackson-databind" % "2.6.7.3",
-    dependencyOverrides += "jline" % "jline" % "2.14.6")
+    dependencyOverrides += "jline" % "jline" % "2.14.6",
+    dependencyOverrides += "org.apache.avro" % "avro" % "1.8.2")
 }
 
 /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org