[
https://issues.apache.org/jira/browse/SPARK-3647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206112#comment-14206112
]
Andrew Ash commented on SPARK-3647:
-----------------------------------
Based on poking at the git repo below I'm marking with a fix version of 1.2.0
(the next release on branch-1.2)
{noformat}
aash@aash-mbp ~/git/spark$ git log origin/master | grep SPARK-3647
[SPARK-3647] Add more exceptions to Guava relocation.
Closes #2496 from vanzin/SPARK-3647 and squashes the following commits:
84f58d7 [Marcelo Vanzin] [SPARK-3647] Add more exceptions to Guava
relocation.
aash@aash-mbp ~/git/spark$ git log origin/branch-1.0 | grep SPARK-3647
aash@aash-mbp ~/git/spark$ git log origin/branch-1.1 | grep SPARK-3647
aash@aash-mbp ~/git/spark$ git log origin/branch-1.2 | grep SPARK-3647
[SPARK-3647] Add more exceptions to Guava relocation.
Closes #2496 from vanzin/SPARK-3647 and squashes the following commits:
84f58d7 [Marcelo Vanzin] [SPARK-3647] Add more exceptions to Guava
relocation.
aash@aash-mbp ~/git/spark$
{noformat}
> Shaded Guava patch causes access issues with package private classes
> --------------------------------------------------------------------
>
> Key: SPARK-3647
> URL: https://issues.apache.org/jira/browse/SPARK-3647
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.2.0
> Reporter: Marcelo Vanzin
> Assignee: Marcelo Vanzin
> Priority: Critical
> Fix For: 1.2.0
>
>
> The patch that introduced shading to Guava (SPARK-2848) tried to maintain
> backwards compatibility in the Java API by not relocating the "Optional"
> class. That causes problems when that class references package private
> members in the Absent and Present classes, which are now in a different
> package:
> {noformat}
> Exception in thread "main" java.lang.IllegalAccessError: tried to access
> class org.spark-project.guava.common.base.Present from class
> com.google.common.base.Optional
> at com.google.common.base.Optional.of(Optional.java:86)
> at
> org.apache.spark.api.java.JavaUtils$.optionToOptional(JavaUtils.scala:25)
> at
> org.apache.spark.api.java.JavaSparkContext.getSparkHome(JavaSparkContext.scala:542)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]