Skip to content

[SPARK-29781][BUILD][2.4] Override SBT Jackson dependency like Maven #26417

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

Closed
wants to merge 1 commit into from
Closed

[SPARK-29781][BUILD][2.4] Override SBT Jackson dependency like Maven #26417

wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

What changes were proposed in this pull request?

This PR aims to override SBT jackson-databind dependency like Maven in branch-2.4.

Why are the changes needed?

Without this, SBT and Maven works differently in branch-2.4. We had better fix this in branch-2.4 because it's our LTS branch.

$ build/sbt -Phadoop-3.1 "core/testOnly *.ShuffleDependencySuite"
[info] ShuffleDependencySuite:
[info] org.apache.spark.shuffle.ShuffleDependencySuite *** ABORTED ***
...
[info]   Cause: com.fasterxml.jackson.databind.JsonMappingException: Incompatible Jackson version: 2.7.8

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually do build/sbt -Phadoop-3.1 "core/testOnly *.ShuffleDependencySuite".

@SparkQA
Copy link

SparkQA commented Nov 7, 2019

Test build #113345 has finished for PR 26417 at commit c0f735f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member Author

Retest this please

@SparkQA
Copy link

SparkQA commented Nov 7, 2019

Test build #113346 has finished for PR 26417 at commit c0f735f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member Author

Retest this please.

@SparkQA
Copy link

SparkQA commented Nov 7, 2019

Test build #113352 has finished for PR 26417 at commit c0f735f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member Author

Although it's irrelevant, org.apache.spark.sql.hive.HiveExternalCatalogVersionsSuite fails sequentially three times.

org.scalatest.exceptions.TestFailedException: Fail to get the lates Spark versions to test.

@dongjoon-hyun
Copy link
Member Author

Retest this please

@SparkQA
Copy link

SparkQA commented Nov 7, 2019

Test build #113391 has finished for PR 26417 at commit c0f735f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

dongjoon-hyun added a commit that referenced this pull request Nov 7, 2019
…gnore preview release

### What changes were proposed in this pull request?

This aims to exclude the `preview` release to recover `HiveExternalCatalogVersionsSuite`. Currently, new preview release breaks `branch-2.4` PRBuilder since yesterday. New release (especially `preview`) should not affect `branch-2.4`.
- #26417 (Failed 4 times)

### Why are the changes needed?

**BEFORE**
```scala
scala> scala.io.Source.fromURL("https://dist.apache.org/repos/dist/release/spark/").mkString.split("\n").filter(_.contains("""<li><a href="spark-""")).map("""<a href="spark-(\d.\d.\d)/">""".r.findFirstMatchIn(_).get.group(1))
java.util.NoSuchElementException: None.get
```

**AFTER**
```scala
scala> scala.io.Source.fromURL("https://dist.apache.org/repos/dist/release/spark/").mkString.split("\n").filter(_.contains("""<li><a href="spark-""")).filterNot(_.contains("preview")).map("""<a href="spark-(\d.\d.\d)/">""".r.findFirstMatchIn(_).get.group(1))
res5: Array[String] = Array(2.3.4, 2.4.4)
```

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

This should pass the PRBuilder.

Closes #26428 from dongjoon-hyun/SPARK-HiveExternalCatalogVersionsSuite.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun added a commit that referenced this pull request Nov 7, 2019
…gnore preview release

### What changes were proposed in this pull request?

This aims to exclude the `preview` release to recover `HiveExternalCatalogVersionsSuite`. Currently, new preview release breaks `branch-2.4` PRBuilder since yesterday. New release (especially `preview`) should not affect `branch-2.4`.
- #26417 (Failed 4 times)

### Why are the changes needed?

**BEFORE**
```scala
scala> scala.io.Source.fromURL("https://dist.apache.org/repos/dist/release/spark/").mkString.split("\n").filter(_.contains("""<li><a href="spark-""")).map("""<a href="spark-(\d.\d.\d)/">""".r.findFirstMatchIn(_).get.group(1))
java.util.NoSuchElementException: None.get
```

**AFTER**
```scala
scala> scala.io.Source.fromURL("https://dist.apache.org/repos/dist/release/spark/").mkString.split("\n").filter(_.contains("""<li><a href="spark-""")).filterNot(_.contains("preview")).map("""<a href="spark-(\d.\d.\d)/">""".r.findFirstMatchIn(_).get.group(1))
res5: Array[String] = Array(2.3.4, 2.4.4)
```

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

This should pass the PRBuilder.

Closes #26428 from dongjoon-hyun/SPARK-HiveExternalCatalogVersionsSuite.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit da848b1)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun
Copy link
Member Author

Retest this please

@SparkQA
Copy link

SparkQA commented Nov 7, 2019

Test build #113398 has finished for PR 26417 at commit c0f735f.

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

@dbtsai
Copy link
Member

dbtsai commented Nov 7, 2019

LGTM. Thanks.

@dongjoon-hyun
Copy link
Member Author

Thank you for review and approval, @dbtsai .
Merged to branch-2.4

dongjoon-hyun added a commit that referenced this pull request Nov 7, 2019
### What changes were proposed in this pull request?

This PR aims to override SBT `jackson-databind` dependency like Maven in `branch-2.4`.

### Why are the changes needed?

Without this, SBT and Maven works differently in `branch-2.4`. We had better fix this in `branch-2.4` because it's our LTS branch.

```
$ build/sbt -Phadoop-3.1 "core/testOnly *.ShuffleDependencySuite"
[info] ShuffleDependencySuite:
[info] org.apache.spark.shuffle.ShuffleDependencySuite *** ABORTED ***
...
[info]   Cause: com.fasterxml.jackson.databind.JsonMappingException: Incompatible Jackson version: 2.7.8
```

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Manually do `build/sbt -Phadoop-3.1 "core/testOnly *.ShuffleDependencySuite"`.

Closes #26417 from dongjoon-hyun/SPARK-29781.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-29781 branch November 7, 2019 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants