You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/10/27 00:07:51 UTC

[GitHub] [iceberg] wangyum commented on a diff in pull request #5783: Build: Update Spark to 3.3.1

wangyum commented on code in PR #5783:
URL: https://github.com/apache/iceberg/pull/5783#discussion_r1006285951


##########
spark/v3.3/build.gradle:
##########
@@ -27,6 +27,16 @@ def sparkProjects = [
     project(":iceberg-spark:iceberg-spark-runtime-${sparkMajorVersion}_${scalaVersion}"),
 ]
 
+configure(sparkProjects) {
+  configurations {
+    all {
+      resolutionStrategy {
+        force 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
+      }
+    }
+  }
+}

Review Comment:
   To fix:
   ```
   ```
   > Could not resolve all files for configuration ':iceberg-spark:iceberg-spark-3.3_2.12:compileClasspath'.
   
      > Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
        Searched in the following locations:
          - https://repository.apache.org/content/repositories/orgapachespark-1430/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - file:/home/runner/.m2/repository/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
        Required by:
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.avro:avro:1.11.1 > com.fasterxml.jackson.core:jackson-databind:2.13.4.1
      > Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
        Searched in the following locations:
          - https://repository.apache.org/content/repositories/orgapachespark-1430/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - file:/home/runner/.m2/repository/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
        Required by:
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.arrow:arrow-vector:7.0.0 > com.fasterxml.jackson.core:jackson-annotations:2.13.4
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.avro:avro:1.11.1 > com.fasterxml.jackson.core:jackson-core:2.13.4
   Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
   ```
   ```



##########
spark/v3.3/build.gradle:
##########
@@ -27,6 +27,16 @@ def sparkProjects = [
     project(":iceberg-spark:iceberg-spark-runtime-${sparkMajorVersion}_${scalaVersion}"),
 ]
 
+configure(sparkProjects) {
+  configurations {
+    all {
+      resolutionStrategy {
+        force 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
+      }
+    }
+  }
+}

Review Comment:
   To fix:
   ```
   > Could not resolve all files for configuration ':iceberg-spark:iceberg-spark-3.3_2.12:compileClasspath'.
   
      > Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
        Searched in the following locations:
          - https://repository.apache.org/content/repositories/orgapachespark-1430/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - file:/home/runner/.m2/repository/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
        Required by:
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.avro:avro:1.11.1 > com.fasterxml.jackson.core:jackson-databind:2.13.4.1
      > Could not find com.fasterxml.jackson:jackson-bom:2.13.4.1.
        Searched in the following locations:
          - https://repository.apache.org/content/repositories/orgapachespark-1430/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
          - file:/home/runner/.m2/repository/com/fasterxml/jackson/jackson-bom/2.13.4.1/jackson-bom-2.13.4.1.pom
        Required by:
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.arrow:arrow-vector:7.0.0 > com.fasterxml.jackson.core:jackson-annotations:2.13.4
            project :iceberg-spark:iceberg-spark-3.3_2.12 > org.apache.avro:avro:1.11.1 > com.fasterxml.jackson.core:jackson-core:2.13.4
   Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
   ```



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org